/**
 * Premium Login Page CSS — Doctorito Academy
 * Uses CSS logical properties so RTL/LTR works automatically
 */
/* @font-face {
    font-family: expo;
    src: url('../fonts/expo-reg.ttf');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: expo;
    src: url('../fonts/expo.ttf');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: expo;
    src: url('../fonts/expo.ttf');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
} */

:root {
    --primary-blue: #011f5b;
    --light-blue: #006EB3;
    --text-dark: #1E2D4D;
    --border-color: #006EB3;
}

body {
    margin: 0;
    padding: 0;
}

.login-split-container {
    display: flex;
    flex-wrap: wrap;
    min-height: 100vh;

}

/* Image Side */
.login-split-visual {
    flex: 1.2;
    background-color: #79A3B5;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-split-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    z-index: 1;
}

/* .login-split-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: #006EB3;
    opacity: 0.5;
    z-index: 1;
} */

.login-split-visual .visual-overlay {
    position: relative;
    z-index: 2;
    text-align: start;
    width: 100%;
}

.login-split-visual .visual-overlay p {
    color: #fff;
    font-size: 28px;
    width: 50%;
    margin-inline-start: 4rem;
    font-weight: 600;
    line-height: 1.6;
}

/* Form Side */
.login-split-form {
    flex: 1;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    z-index: 5;
}

.login-form-inner {
    width: 100%;
    max-width: 650px;
}

.login-logo {
    display: flex;
    flex-direction: row;
    /* Changed from column to row */
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.login-logo h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    color: black;
    letter-spacing: 1px;
}

.login-logo img {
    height: 80px;
}

.login-title {
    font-size: 22px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 25px;
}

/* Form Controls */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 12px;
    font-size: 15px;
    color: var(--text-dark);
    text-align: start;
    /* ✅ direction-aware */
}

.input-wrapper {
    position: relative;
}

.input-wrapper input {
    width: 100%;
    /* ✅ inline padding accounts for the icon on the start side */
    padding-block: 14px;
    padding-inline-start: 25px;
    padding-inline-end: 25px;
    /* removed extra space for manual eye icon */
    border: 1px solid var(--border-color);
    border-radius: 30px;
    font-size: 14px;
    color: #333;
    transition: border-color 0.3s;
    background: #fff;
    /* ✅ text follows document direction automatically */
    box-sizing: border-box;
}

.input-wrapper input::placeholder {
    color: #B0C4CD;
}

.input-wrapper input:focus {
    border-color: var(--primary-blue);
    outline: none;
    box-shadow: 0 0 5px rgba(1, 31, 91, 0.2);
}

.input-wrapper input.is-invalid {
    border-color: #ef4444;
    /* red-500 */
}

.input-wrapper input.is-invalid:focus {
    box-shadow: 0 0 5px rgba(239, 68, 68, 0.2);
}

.field-error {
    color: #ef4444;
    /* red-500 */
    font-size: 13px;
    margin-top: 5px;
    padding-top: 8px;
    /* Added some PT */
    margin-inline-start: 15px;
    display: none;
    font-weight: 500;
}

.input-wrapper .toggle-pw {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    inset-inline-end: 20px;
    color: inherit;
    font-size: 18px;
    cursor: pointer;
}

/* Extras */
.form-extras {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    margin-top: 10px;
    font-size: 14px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-dark);
}

.remember-me input {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--primary-blue);
}

.forgot-password {
    color: var(--light-blue);
    text-decoration: none;
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* Button */
.login-btn {
    width: 100%;
    padding: 14px;
    background-color: var(--light-blue);
    color: #fff;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.login-btn:hover {
    background-color: #031435;
    box-shadow: 0 5px 15px rgba(1, 31, 91, 0.3);
}

/* Signup Link */
.signup-link {
    margin-top: 25px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: #888;
}

.signup-link a {
    color: var(--light-blue);
    text-decoration: none;
}

.signup-link a:hover {
    text-decoration: underline;
}

/* Language Switcher */
.lang-switcher-login {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.lang-btn {
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    color: #888;
    border: 1px solid #ddd;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
}

.lang-btn:hover {
    background: var(--primary-blue);
    color: #fff;
    border-color: var(--primary-blue);
}

/* Responsive */
@media (max-width: 991px) {
    .login-split-visual {
        display: none;
    }

    .login-split-form {
        padding: 40px 20px;
    }
}

@media (max-width: 768px) {
    .login-logo {
        margin-bottom: 30px;
    }
    
    .login-logo h3 {
        font-size: 20px;
    }

    .login-title {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .form-group label {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .input-wrapper input {
        padding-block: 12px;
        font-size: 13px;
    }

    .login-btn {
        font-size: 16px;
        padding: 12px;
    }

    .form-extras {
        /* Keep it inline if possible or give some space, but wrap if cramped. Usually remember me and forgot pw can stay inline on tablets. */
        margin-bottom: 20px;
    }

    .signup-link {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .login-logo h3 {
        font-size: 18px;
        letter-spacing: 0.5px;
    }

    .login-title {
        font-size: 16px;
    }

    .login-logo img {
        height: 60px;
    }

    .form-extras {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        font-size: 13px;
    }

    .login-btn {
        font-size: 15px;
    }
}