.login-section {
    padding-top: 64px;
    padding-bottom: 80px;
}

.login-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 0.85fr);
    gap: 36px;
    align-items: start;
    max-width: 1060px;
    margin: 0 auto;
}

.login-info-card {
    position: sticky;
    top: 110px;
    padding: 36px;
    border: 1px solid rgba(190, 149, 59, 0.35);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(10, 36, 62, 0.98), rgba(18, 58, 91, 0.96));
    color: #ffffff;
    box-shadow: 0 22px 52px rgba(8, 31, 54, 0.17);
    overflow: hidden;
}

.login-info-card::before {
    content: "";
    position: absolute;
    top: -90px;
    right: -80px;
    width: 210px;
    height: 210px;
    border: 1px solid rgba(216, 177, 87, 0.2);
    border-radius: 50%;
}

.login-info-card::after {
    content: "";
    position: absolute;
    right: -24px;
    bottom: -40px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(216, 177, 87, 0.08);
}

.login-label,
.form-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: #d8b157;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.login-info-card h2 {
    position: relative;
    z-index: 1;
    margin: 0 0 14px;
    color: #ffffff;
    font-size: clamp(1.65rem, 2.7vw, 2.2rem);
    line-height: 1.18;
}

.login-intro {
    position: relative;
    z-index: 1;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.75;
}

.login-benefits {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 22px;
    margin: 32px 0;
    padding: 0;
    list-style: none;
}

.login-benefits li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.benefit-icon {
    display: inline-flex;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    border: 1px solid rgba(216, 177, 87, 0.55);
    border-radius: 50%;
    background: rgba(216, 177, 87, 0.14);
    color: #f2ce78;
    font-size: 0.85rem;
    font-weight: 900;
}

.login-benefits strong,
.login-benefits span {
    display: block;
}

.login-benefits strong {
    margin-bottom: 4px;
    color: #ffffff;
    font-size: 0.98rem;
}

.login-benefits li div span {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.9rem;
    line-height: 1.55;
}

.login-help {
    position: relative;
    z-index: 1;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.07);
}

.login-help strong {
    display: block;
    margin-bottom: 5px;
    color: #f0cb73;
}

.login-help p {
    margin: 0 0 10px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
    line-height: 1.55;
}

.login-help a {
    color: #f2ce78;
    font-weight: 800;
    text-decoration: none;
}

.login-help a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.login-form {
    width: 100%;
    padding: clamp(28px, 4vw, 44px);
    border-radius: 22px;
}

.login-form-heading {
    margin-bottom: 30px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e7e9ee;
}

.login-form-heading h2 {
    margin: 0 0 8px;
    color: #102f4c;
    font-size: clamp(1.55rem, 2.6vw, 2rem);
}

.login-form-heading p {
    margin: 0;
    color: var(--muted, #667085);
    line-height: 1.65;
}

.form-group {
    margin-bottom: 22px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #243b53;
    font-size: 0.92rem;
    font-weight: 700;
}

.required-mark {
    color: #b42318;
}

.login-form input[type="email"],
.login-form input[type="password"] {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid #ccd3dc;
    border-radius: 10px;
    background: #ffffff;
    color: #1f2937;
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-form input::placeholder {
    color: #98a2b3;
}

.login-form input:focus {
    border-color: #b99038;
    outline: none;
    box-shadow: 0 0 0 4px rgba(185, 144, 56, 0.12);
}

.label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.small-link {
    margin-bottom: 8px;
    color: #24547d;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
}

.small-link:hover {
    color: #9b711b;
    text-decoration: underline;
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 76px !important;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    padding: 5px 7px;
    border: 0;
    background: transparent;
    color: #24547d;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 800;
    cursor: pointer;
    transform: translateY(-50%);
}

.password-toggle:hover {
    color: #9b711b;
}

.login-remember {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    margin: 4px 0 22px;
    color: #4a5b6c;
    font-size: 0.9rem;
    font-weight: 600 !important;
    line-height: 1.5;
    cursor: pointer;
}

.login-remember input {
    flex: 0 0 auto;
    width: 18px !important;
    height: 18px !important;
    min-height: 18px !important;
    margin: 2px 0 0 !important;
    accent-color: #b99038;
}

.login-submit {
    min-height: 52px;
    margin-top: 6px;
    font-size: 1rem;
    font-weight: 800;
}

.auth-message {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    margin-bottom: 24px;
    padding: 14px 16px;
    border-radius: 10px;
    line-height: 1.5;
}

.message-symbol {
    display: inline-flex;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 900;
}

.auth-message-error {
    border: 1px solid #efb5b5;
    background: #fff1f1;
    color: #8f1d1d;
}

.auth-message-error .message-symbol {
    background: #b42318;
    color: #ffffff;
}

.auth-message-success {
    border: 1px solid #b5dfc1;
    background: #effaf2;
    color: #176535;
}

.auth-message-success .message-symbol {
    background: #168044;
    color: #ffffff;
}

.auth-footer-text {
    margin: 20px 0 0;
    text-align: center;
    color: var(--muted, #667085);
}

.auth-footer-text a {
    color: #24547d;
    font-weight: 800;
    text-decoration: none;
}

.auth-footer-text a:hover {
    color: #9b711b;
    text-decoration: underline;
}

@media (max-width: 920px) {
    .login-layout {
        grid-template-columns: 1fr;
    }

    .login-info-card {
        position: relative;
        top: auto;
    }

    .login-benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .login-section {
        padding-top: 42px;
        padding-bottom: 56px;
    }

    .login-info-card,
    .login-form {
        padding: 24px 20px;
        border-radius: 16px;
    }

    .login-benefits {
        grid-template-columns: 1fr;
    }

    .label-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 0;
    }
}

/* Customer portal: isolated layout and button corrections */
.customer-login-main {
    background: #f4f7fb;
}
.customer-login-page .login-hero {
    padding: 44px 0 36px;
    background: #eaf0f7;
    border-bottom: 1px solid #dce4ed;
}
.customer-login-page .login-hero .eyebrow {
    color: #947019;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.customer-login-page .login-hero h1 {
    margin: 12px 0;
    color: #172b46;
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.2;
}
.customer-login-page .login-hero p {
    margin: 0;
    color: #536477;
    line-height: 1.7;
}
.customer-login-page .login-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 28px;
    max-width: 1000px;
}
.customer-login-page .login-info-card {
    position: relative;
    top: auto;
    box-sizing: border-box;
}
.customer-login-page .login-form {
    box-sizing: border-box;
    min-width: 0;
    margin: 0;
    background: #ffffff;
    border: 1px solid #dce4ed;
    box-shadow: 0 6px 24px rgba(23, 43, 70, 0.07);
}
.customer-login-page .login-form .form-eyebrow {
    color: #947019;
}
.customer-login-page .login-form input[type="email"],
.customer-login-page .login-form .password-field input {
    box-sizing: border-box;
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid #ccd3dc;
    border-radius: 10px;
    background: #ffffff;
    color: #1f2937;
    font: inherit;
}
.customer-login-page .login-form .password-toggle {
    display: inline-block;
    z-index: 2;
}
.customer-login-page .login-form .small-link {
    display: inline-block;
}
.customer-login-page .login-form .login-submit {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 13px 20px;
    background: #c39b28;
    border: 1px solid #c39b28;
    border-radius: 8px;
    color: #172b46;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}
.customer-login-page .login-form .login-submit:hover {
    background: #ae891f;
    border-color: #ae891f;
}
.customer-login-page .login-form button:focus-visible {
    outline: 3px solid #172b46;
    outline-offset: 3px;
}
@media (max-width: 920px) {
    .customer-login-page .login-layout {
        grid-template-columns: minmax(0, 1fr);
        max-width: 600px;
    }
    .customer-login-page .login-form {
        order: -1;
    }
}
@media (max-width: 640px) {
    .customer-login-page .login-hero {
        padding: 32px 0;
    }
    .customer-login-page .login-form input[type="email"],
    .customer-login-page .login-form .password-field input {
        font-size: 16px;
    }
}
