.driver-auth-layout {
    display: grid;
    grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 0.85fr);
    gap: 30px;
    align-items: stretch;
    max-width: 1020px;
    margin: 0 auto;
}

.driver-auth-copy,
.driver-auth-card {
    border-radius: 22px;
}

.driver-auth-copy {
    position: relative;
    overflow: hidden;
    padding: 38px;
    background:
        radial-gradient(circle at top right, rgba(216, 177, 87, 0.16), transparent 28%),
        linear-gradient(145deg, #0a243e, #123a5b);
    color: #ffffff;
    box-shadow: 0 22px 52px rgba(8, 31, 54, 0.17);
}

.driver-auth-copy::after {
    content: "";
    position: absolute;
    right: -45px;
    bottom: -45px;
    width: 125px;
    height: 125px;
    border-radius: 50%;
    background: rgba(216, 177, 87, 0.08);
}

.driver-auth-eyebrow,
.driver-auth-card-heading > span {
    display: inline-block;
    margin-bottom: 12px;
    color: #d8b157;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.driver-auth-copy h2 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: clamp(1.7rem, 3vw, 2.25rem);
    line-height: 1.2;
}

.driver-auth-copy > p {
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.7;
}

.driver-auth-benefits {
    display: grid;
    gap: 20px;
    margin: 30px 0;
}

.driver-auth-benefit {
    display: flex;
    gap: 13px;
    align-items: flex-start;
}

.driver-auth-benefit > span {
    display: inline-flex;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(216, 177, 87, 0.55);
    border-radius: 50%;
    background: rgba(216, 177, 87, 0.14);
    color: #f2ce78;
    font-weight: 900;
}

.driver-auth-benefit strong,
.driver-auth-benefit small {
    display: block;
}

.driver-auth-benefit strong {
    margin-bottom: 4px;
    color: #ffffff;
}

.driver-auth-benefit small {
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.5;
}

.driver-signup-box {
    position: relative;
    z-index: 1;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.07);
}

.driver-signup-box strong {
    display: block;
    margin-bottom: 6px;
    color: #f0cb73;
}

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

.driver-signup-box a {
    color: #f2ce78;
    font-weight: 800;
    text-decoration: none;
}

.driver-signup-box a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.driver-auth-card {
    padding: clamp(30px, 4vw, 44px);
}

.driver-auth-card-heading {
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom: 1px solid #e7e9ee;
}

.driver-auth-card-heading h2 {
    margin: 0 0 8px;
    color: #102f4c;
    font-size: clamp(1.6rem, 2.8vw, 2rem);
}

.driver-auth-card-heading p {
    margin: 0;
    color: #667085;
    line-height: 1.6;
}

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

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

.required-mark {
    color: #b42318;
}

.driver-auth-card input[type="email"],
.driver-auth-card input[type="password"] {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid #ccd3dc;
    border-radius: 10px;
    background: #ffffff;
    color: #1f2937;
    font: inherit;
}

.driver-auth-card 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%);
}

.driver-remember {
    margin: 2px 0 20px;
}

.driver-auth-footer {
    margin: 18px 0 0;
    text-align: center;
    color: #667085;
}

.driver-auth-footer a {
    font-weight: 700;
}

.form-message {
    margin-bottom: 22px;
    padding: 14px 16px;
    border-radius: 10px;
}

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

@media (max-width: 900px) {
    .driver-auth-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .driver-auth-copy,
    .driver-auth-card {
        padding: 24px 20px;
        border-radius: 16px;
    }

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

/* Portal theme overrides */
.driver-login-main {
    background: #f4f7fb;
}
.driver-login-main .driver-login-hero {
    padding: 44px 0 36px;
    background: #eaf0f7;
    border-bottom: 1px solid #dce4ed;
}
.driver-login-main .driver-login-hero .eyebrow {
    color: #947019;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}
.driver-login-main .driver-login-hero h1 {
    margin: 12px 0;
    color: #172b46;
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.2;
}
.driver-login-main .driver-login-hero p {
    margin: 0;
    color: #536477;
    line-height: 1.7;
}
.driver-login-main .driver-auth-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 28px;
    max-width: 1000px;
}
.driver-login-main .driver-auth-copy {
    position: relative;
    top: auto;
    box-sizing: border-box;
}
.driver-login-main .driver-auth-card {
    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);
}
.driver-login-main .driver-auth-card .driver-auth-card-heading > span {
    color: #947019;
}
.driver-login-main .driver-auth-card input[type="email"],
.driver-login-main .driver-auth-card .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;
}
.driver-login-main .driver-auth-card .password-toggle {
    display: inline-block;
    z-index: 2;
}
.driver-login-main .driver-auth-card .small-link {
    display: inline-block;
}
.driver-login-main .driver-auth-card .driver-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;
}
.driver-login-main .driver-auth-card .driver-login-submit:hover {
    background: #ae891f;
    border-color: #ae891f;
}
.driver-login-main .driver-auth-card button:focus-visible {
    outline: 3px solid #172b46;
    outline-offset: 3px;
}
@media (max-width: 920px) {
    .driver-login-main .driver-auth-layout {
        grid-template-columns: minmax(0, 1fr);
        max-width: 600px;
    }
    .driver-login-main .driver-auth-card {
        order: -1;
    }
}
@media (max-width: 640px) {
    .driver-login-main .driver-login-hero {
        padding: 32px 0;
    }
    .driver-login-main .driver-auth-card input[type="email"],
    .driver-login-main .driver-auth-card .password-field input {
        font-size: 16px;
    }
}

.driver-login-main .driver-login-section {
    padding: 48px 0 60px;
    background: #f4f7fb;
}
.driver-auth-card .driver-remember {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 4px 0 22px;
    color: #4a5b6c;
    line-height: 1.5;
}
.driver-auth-card .driver-remember input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    min-height: 0;
    margin: 2px 0 0;
    accent-color: #b99038;
}
.driver-auth-footer a {
    color: #24547d;
    text-decoration: none;
}
.driver-auth-footer a:hover {
    color: #9b711b;
    text-decoration: underline;
}
@media (max-width: 640px) {
    .driver-login-main .driver-login-section {
        padding: 30px 0 40px;
    }
}
