* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: #0a0a0a;
    color: white;
    overflow: hidden; /* Prevent scroll on login page */
}

.split-screen {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* --- LEFT SIDE (Atmospheric Image) --- */
.left-side {
    width: 50%;
    position: relative;
    background: linear-gradient(to right, rgba(0, 0, 0, 0), rgb(24, 24, 24)), url('../assets/image/road2.png') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Darkens the image */
    backdrop-filter: blur(8px); /* The "Glass" Blur Effect */
    z-index: 1;
}

.brand-content {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: fadeIn 1.2s ease-out;
}

.logo-text {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.highlight {
    color: #4CAF50; /* Matches your Green Accent */
    text-shadow: 0 0 20px rgba(76, 175, 80, 0.6);
}

.tagline {
    font-size: 1.2rem;
    margin-top: 15px;
    color: #e0e0e0;
    letter-spacing: 1px;
}

/* --- RIGHT SIDE (The Form) --- */
.right-side {
    width: 50%;
    background: #0f0f0f;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Cool Hexagon Grid Background pattern */
.right-side::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(#1a1a1a 15%, transparent 16%),
        radial-gradient(#1a1a1a 15%, transparent 16%);
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
    opacity: 0.3;
}

.form-container {
    width: 400px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 10;
    position: relative;
    overflow: hidden;
}

/* FORM HEADER */
h2 {
    font-size: 2rem;
    margin-bottom: 5px;
}

.subtitle {
    color: #888;
    margin-bottom: 30px;
    font-size: 0.9rem;
}

/* TOGGLE BUTTONS */
.toggle-box {
    display: flex;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.toggle-btn {
    flex: 1;
    padding: 12px;
    background: transparent;
    border: none;
    color: #888;
    font-weight: 600;
    cursor: pointer;
    z-index: 2;
    transition: color 0.3s;
}

.toggle-btn.active {
    color: #fff;
}

.toggle-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: #4CAF50;
    border-radius: 25px;
    transition: left 0.3s ease;
    z-index: 1;
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.4);
}

/* INPUT FIELDS */
.input-field {
    position: relative;
    margin-bottom: 20px;
}

.input-field i {
    position: absolute;
    top: 50%;
    left: 15px;
    transform: translateY(-50%);
    color: #888;
    transition: 0.3s;
}

.input-field input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    outline: none;
    transition: 0.3s;
}

.input-field input:focus {
    border-color: #4CAF50;
    background: rgba(0, 0, 0, 0.5);
}

.input-field input:focus + i {
    color: #4CAF50;
}

/* BUTTONS & LINKS */
.forgot-pass {
    display: block;
    text-align: right;
    color: #888;
    font-size: 0.85rem;
    text-decoration: none;
    margin-bottom: 20px;
    transition: 0.3s;
}

.forgot-pass:hover {
    color: #4CAF50;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(90deg, #4CAF50, #388E3C);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

/* ANIMATION LOGIC */
.input-group {
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.input-group.hidden {
    position: absolute;
    top: 130px; /* Adjust based on toggle height */
    left: 40px; /* Matches padding */
    width: calc(100% - 80px);
    opacity: 0;
    pointer-events: none;
    transform: translateX(400px);
}

/* SOCIAL LOGIN */
.social-login {
    margin-top: 30px;
    text-align: center;
}

.social-login p {
    color: #666;
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.social-icons button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    margin: 0 5px;
    cursor: pointer;
    transition: 0.3s;
}

.social-icons button:hover {
    background: white;
    color: black;
    transform: scale(1.1);
}

/* KEYFRAMES */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .split-screen {
        flex-direction: column;
    }
    .left-side {
        width: 100%;
        height: 30vh;
    }
    .right-side {
        width: 100%;
        height: 70vh;
    }
    .logo-text {
        font-size: 3rem;
    }
    .form-container {
        width: 90%;
        padding: 30px;
    }
}