/* Universal Variables */
:root {
    --teal: #007A83;
    --teal-dark: #005f66;
    --light-bg: #f0f2f5;
    --white: #ffffff;
}

/* Page Layout Fix for Mobile & PC */
body {
    background: var(--light-bg);
    /* Mobile address bar fix ke liye dvh use kiya hai */
    min-height: 100dvh; 
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    padding: 15px;
}

.login-wrapper {
    width: 100%;
    max-width: 950px;
    height: auto;
}

/* Main Card Design */
.login-card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    flex-direction: column; /* Mobile by default */
    border: none;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* LEFT/TOP BRANDING SECTION */
.login-left {
    background: linear-gradient(135deg, var(--teal) 0%, #0099a4 100%);
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
    text-align: center;
}

/* White Circle for Logo (As requested) */
.logo-box {
    width: 100px;
    height: 100px;
    background: var(--white); /* White background for logo */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.logo-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.login-left h3 {
    font-weight: 800;
    margin-bottom: 5px;
    font-size: 1.6rem;
}

/* RIGHT/BOTTOM FORM SECTION */
.login-right {
    padding: 40px 30px;
}

.form-header h2 {
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 10px;
}

/* Input Styling */
.custom-input .input-group-text {
    background: #f8f9fa;
    border-right: none;
    color: #adb5bd;
    border-radius: 12px 0 0 12px;
}

.custom-input .form-control {
    background: #f8f9fa;
    border-left: none;
    padding: 12px 15px;
    border-radius: 0 12px 12px 0;
    font-weight: 500;
}

.custom-input .form-control:focus {
    background: var(--white);
    border-color: #dee2e6;
    box-shadow: none;
}

.input-group:focus-within .input-group-text {
    color: var(--teal);
    border-color: var(--teal);
}

.input-group:focus-within .form-control {
    border-color: var(--teal);
}

/* Teal Button */
.btn-teal {
    background: var(--teal);
    color: var(--white);
    border: none;
    font-weight: 700;
    border-radius: 12px;
    padding: 14px;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
}

.btn-teal:hover {
    background: var(--teal-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 122, 131, 0.3);
    color: var(--white);
}

.forgot-link {
    color: var(--teal);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

.back-link {
    color: #6c757d;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.2s;
}

.back-link:hover {
    color: var(--teal);
}

/* ========================================= */
/* PC/DESKTOP STYLES (992px and above)     */
/* ========================================= */
@media screen and (min-width: 992px) {
    .login-card {
        flex-direction: row; /* Side-by-side split view */
        height: 600px; /* Fixed height for desktop only */
    }

    .login-left {
        flex: 0 0 45%; /* Left side 45% width */
        padding: 60px;
    }

    .login-right {
        flex: 0 0 55%; /* Right side 55% width */
        padding: 60px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .logo-box {
        width: 130px;
        height: 130px;
    }
}

/* ========================================= */
/* MOBILE STYLES (Below 992px)               */
/* ========================================= */
@media screen and (max-width: 991px) {
    body {
        align-items: flex-start; /* Choti screen par upar se shuru hoga */
        padding-top: 20px;
    }

    .login-card {
        border-radius: 20px;
    }

    .login-left {
        /* Upar wala teal section choti screen par curve karega */
        border-radius: 0 0 35px 35px;
        padding: 30px 20px;
    }

    .logo-box {
        width: 80px;
        height: 80px;
        padding: 8px;
    }

    .login-left h3 {
        font-size: 1.3rem;
    }

    .login-right {
        padding: 30px 20px;
    }

    .form-header h2 {
        font-size: 1.5rem;
        text-align: center;
    }

    .form-header p {
        text-align: center;
        font-size: 0.85rem;
    }
}