body, html { margin: 0; padding: 0; height: 100%; font-family: 'Inter', sans-serif; }

.login-container { display: flex; height: 100vh; }

/* Left Side: Form Area */
.login-left {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.login-form-container { width: 100%; max-width: 500px; }

h1 { font-weight: 800; font-size: 2.5rem; margin-bottom: 10px; }
p { color: #666; margin-bottom: 20px; }

input[type="email"], input[type="password"] {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Ensures padding doesn't affect width */
}

.remember-me { margin: 10px 0; display: flex; align-items: center; }

.btn-login {
    width: 100%;
    padding: 15px;
    background-color: #D35400; /* Your primary theme color */
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}

.signup-link { text-align: center; margin-top: 15px; font-size: 0.9rem; }

/* Right Side: Background Image */
.login-right {
    flex: 1;
    background: url("../images/backgrounds/login-client-image-right-bg.png") no-repeat center center/cover;
}
/* ==========================================================
   CARGONNECT CLIENT AUTH SECURITY V1
========================================================== */

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    color: #1f2937;
    background: #ffffff;
}

.login-form-container {
    max-width: 520px;
}

.login-form-container h1 {
    color: #111827;
}

.login-form-container > p {
    line-height: 1.6;
}

.login-field {
    display: block;
    margin-top: 14px;
}

.login-field > span {
    display: block;
    margin-bottom: 6px;
    color: #303846;
    font-size: 0.92rem;
    font-weight: 700;
}

.login-field input[type="email"],
.login-field input[type="password"] {
    min-height: 48px;
    margin: 0;
    border: 1px solid #b9c0c9;
    border-radius: 8px;
    font: inherit;
    color: #111827;
    background: #ffffff;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.login-field input:focus {
    outline: none;
    border-color: #d35400;
    box-shadow: 0 0 0 4px rgba(211, 84, 0, .12);
}

.btn-login {
    min-height: 50px;
    margin-top: 22px;
    border-radius: 8px;
    font-size: 1rem;
    transition: background .18s ease, transform .18s ease;
}

.btn-login:hover {
    background: #b94a00;
}

.btn-login:focus-visible,
.login-help-links a:focus-visible,
.signup-link a:focus-visible {
    outline: 3px solid rgba(211, 84, 0, .28);
    outline-offset: 3px;
}

.login-message {
    margin: 18px 0;
    padding: 13px 15px;
    border: 1px solid;
    border-radius: 8px;
    font-size: .92rem;
    font-weight: 600;
    line-height: 1.5;
}

.login-message--error {
    color: #8a1c1c;
    border-color: #efb1b1;
    background: #fff5f5;
}

.login-message--success {
    color: #176338;
    border-color: #a9dfbc;
    background: #f1fbf5;
}

.login-help-links {
    display: flex;
    justify-content: flex-end;
    margin-top: 13px;
}

.login-help-links a,
.signup-link a {
    color: #b94a00;
    font-weight: 700;
    text-decoration: none;
}

.login-help-links a:hover,
.signup-link a:hover {
    text-decoration: underline;
}

.login-security-note {
    margin: 22px 0 0;
    padding: 12px 14px;
    border: 1px solid #e3e6ea;
    border-radius: 8px;
    color: #555f6e !important;
    background: #f8f9fb;
    font-size: .84rem;
    line-height: 1.55;
}

.login-eyebrow {
    margin-bottom: 8px !important;
    color: #d35400 !important;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
}

.verification-resend-layout .login-form-container {
    max-width: 540px;
}

@media (max-width: 900px) {
    .login-container {
        min-height: 100vh;
        height: auto;
    }

    .login-right {
        display: none;
    }

    .login-left {
        min-height: 100vh;
        padding: 32px 22px;
    }
}

@media (max-width: 520px) {
    .login-left {
        padding: 28px 18px;
    }

    h1 {
        font-size: 2rem;
    }
}


/* ==========================================================
   SHOW / HIDE PASSWORD — CLIENT LOGIN V1.1
========================================================== */

.login-password-toggle {
    width: fit-content;

    display: inline-flex;
    align-items: center;

    gap: 8px;

    margin-top: 10px;

    color: #4b5563;

    font-size: .88rem;
    font-weight: 600;

    cursor: pointer;
    user-select: none;
}

.login-password-toggle input {
    width: 17px;
    height: 17px;

    margin: 0;

    accent-color: #d35400;

    cursor: pointer;
}

.login-password-toggle:focus-within {
    outline: 3px solid rgba(211, 84, 0, .18);
    outline-offset: 3px;
    border-radius: 4px;
}

.login-field input,
.login-field input[type="email"],
.login-field input[type="password"],
.login-field input[type="text"] {
    width: 100%;

    min-height: 50px;

    display: block;

    margin: 0;

    padding: 0 14px;

    border: 1px solid #b9c0c9;
    border-radius: 8px;

    background: #ffffff;

    color: #111827;

    font: inherit;
    font-size: 15px;

    box-sizing: border-box;

    transition:
        border-color .18s ease,
        box-shadow .18s ease,
        background-color .18s ease;
}

.login-field input:focus {
    outline: none;

    border-color: #d35400;

    box-shadow:
        0 0 0 3px rgba(211, 84, 0, .12);
}


/* ----------------------------------------------------------
   2. SHOW / HIDE PASSWORD
---------------------------------------------------------- */

.login-password-toggle {
    width: max-content;
    max-width: 100%;

    display: inline-flex;
    align-items: center;

    gap: 8px;

    margin: 10px 0 0;

    padding: 4px 0;

    border: 0;
    border-radius: 0;

    background: transparent;

    color: #4b5563;

    font-size: 13px;
    font-weight: 650;
    line-height: 1.3;

    cursor: pointer;

    user-select: none;
}

.login-password-toggle input[type="checkbox"] {
    width: 17px;
    height: 17px;

    flex: 0 0 17px;

    margin: 0;

    border-radius: 4px;

    accent-color: #d35400;

    cursor: pointer;
}

.login-password-toggle span {
    display: inline-block;

    margin: 0;

    color: #4b5563;

    font-size: 13px;
    font-weight: 650;
}

/* Remove the large orange box that appeared around the label. */
.login-password-toggle:focus-within {
    outline: none;
    box-shadow: none;
}

/* Keep keyboard accessibility on the checkbox itself. */
.login-password-toggle input[type="checkbox"]:focus-visible {
    outline: 3px solid rgba(211, 84, 0, .20);
    outline-offset: 2px;
}


/* ----------------------------------------------------------
   3. LOGIN HELP LINKS
---------------------------------------------------------- */

.login-help-links {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-wrap: wrap;

    gap: 8px 0;

    margin: 16px 0 0;

    text-align: center;
}

.login-help-links a {
    display: inline-flex;
    align-items: center;

    min-height: 30px;

    padding: 4px 14px;

    color: #b94a00;

    font-size: 13px;
    font-weight: 750;
    line-height: 1.35;

    text-decoration: none;

    white-space: nowrap;
}

.login-help-links a + a {
    border-left: 1px solid #d9dde2;
}

.login-help-links a:hover {
    color: #963d00;

    text-decoration: underline;
}

.login-help-links a:focus-visible {
    outline: 3px solid rgba(211, 84, 0, .20);
    outline-offset: 2px;

    border-radius: 5px;
}


/* ----------------------------------------------------------
   4. LOGIN BUTTON SPACING
---------------------------------------------------------- */

.btn-login {
    margin-top: 20px;
}


/* ----------------------------------------------------------
   5. SMALL SCREEN
---------------------------------------------------------- */

@media (max-width: 520px) {
    .login-help-links {
        align-items: stretch;
        flex-direction: column;

        gap: 3px;
    }

    .login-help-links a {
        justify-content: center;

        width: 100%;

        padding: 6px 8px;
    }

    .login-help-links a + a {
        border-left: 0;
    }
}
