.auth-page-body {
    margin: 0;
    min-height: 100vh;
    font-family: "Manrope", "Inter", sans-serif;
    background: #eef4ff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

.auth-page-body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: url("../img/login-fleet-bg.png") center center / cover no-repeat;
    pointer-events: none;
    z-index: 0;
}

.auth-page-body:has(.auth-card-register) {
    align-items: flex-start;
}

.auth-shell {
    width: 100%;
    max-width: 640px;
    position: relative;
    z-index: 2;
}

.auth-card {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 30px 70px rgba(39, 70, 120, 0.22);
    border-radius: 34px;
    padding: 38px 40px 34px;
}

.auth-card-register {
    max-width: 720px;
    margin: 0 auto;
}

.auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 22px;
    color: #294271;
}

.auth-brand-icon {
    color: #3d74dc;
    line-height: 1;
}

.auth-brand-mark-img {
    width: 62px;
    height: 52px;
    display: block;
    object-fit: contain;
}

.auth-brand-logo {
    width: 210px;
    height: auto;
    display: block;
}

.auth-brand-icon.fleet-mark,
.fleet-mark {
    width: 46px;
    height: 36px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fleet-mark span {
    position: absolute;
    left: 2px;
    height: 9px;
    border-radius: 999px 999px 999px 5px;
    background: linear-gradient(135deg, #6a8cff 0%, #1f5ff2 100%);
    transform: skewX(-17deg);
    box-shadow: 0 7px 16px rgba(37, 99, 235, 0.18);
}

.fleet-mark span:nth-child(1) {
    top: 1px;
    width: 38px;
}

.fleet-mark span:nth-child(2) {
    top: 14px;
    width: 29px;
}

.fleet-mark span:nth-child(3) {
    top: 27px;
    width: 18px;
}

.auth-brand-text {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: 0;
}

.auth-title {
    margin: 0 0 28px;
    text-align: center;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 800;
    color: #2a3d65;
    letter-spacing: 0;
}

.error-shell {
    max-width: 620px;
}

.error-card {
    text-align: center;
}

.error-code {
    margin: -4px 0 10px;
    color: #376fd1;
    font-size: clamp(52px, 12vw, 84px);
    line-height: 1;
    font-weight: 850;
    letter-spacing: -0.04em;
}

.error-title {
    margin-bottom: 14px;
}

.error-message {
    max-width: 440px;
    margin: 0 auto;
    color: #5d6f8f;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 650;
}

.error-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
}

.error-primary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: min(100%, 320px);
    box-sizing: border-box;
    text-decoration: none;
}

.error-secondary-link {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
}

.auth-subtitle {
    margin: -16px 0 24px;
    color: #687998;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 700;
    text-align: center;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
}

.auth-choice-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
}

.auth-choice-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-height: 106px;
    padding: 16px;
    border: 1px solid #dce4f2;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    color: #52627f;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.auth-choice-card input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.auth-choice-card:has(input:checked) {
    border-color: #5c8ef1;
    background: #f4f8ff;
    box-shadow: 0 14px 32px rgba(68, 120, 226, 0.14);
}

.auth-choice-icon {
    width: 38px;
    height: 38px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #edf4ff;
    color: #3e75df;
    font-size: 20px;
}

.auth-choice-card strong,
.auth-choice-card small {
    display: block;
    letter-spacing: 0;
}

.auth-choice-card strong {
    margin-bottom: 5px;
    color: #2b416a;
    font-size: 15px;
    line-height: 1.25;
    font-weight: 800;
}

.auth-choice-card small {
    color: #70809d;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 650;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-input-wrap {
    position: relative;
}

.auth-input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: #a1aec7;
    pointer-events: none;
}

.auth-input {
    width: 100%;
    height: 58px;
    border-radius: 14px;
    border: 1px solid #d9e1ee;
    background: rgba(255, 255, 255, 0.88);
    padding: 0 18px 0 56px;
    font-size: 18px;
    color: #33476e;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    box-sizing: border-box;
}

.auth-input::placeholder {
    color: #98a6c3;
}

.auth-input:focus {
    border-color: #5c8ef1;
    box-shadow: 0 0 0 4px rgba(92, 142, 241, 0.13);
    background: #ffffff;
}

.auth-field-hint {
    margin: 8px 2px 0;
    color: #7585a1;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 650;
}

.auth-field-hint-error {
    color: #d64242;
}

.auth-form:not(:has(input[name="account_type"][value="company"]:checked)) [data-account-section="company"] {
    display: none;
}

.auth-password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #a5b2cb;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.auth-password-toggle:hover {
    background: rgba(92, 142, 241, 0.08);
    color: #6e88b7;
}

.auth-password {
    padding-right: 56px;
}

.auth-row {
    display: flex;
    justify-content: flex-end;
    margin-top: -4px;
}

.auth-row-split {
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.auth-remember-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #5f6f8c;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    user-select: none;
}

.auth-remember-wrap input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #3e7aed;
    cursor: pointer;
}

.auth-link {
    color: #5a86db;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
}

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

.auth-submit {
    width: 100%;
    height: 62px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(90deg, #3e7aed 0%, #3672e5 50%, #336de0 100%);
    color: #ffffff;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0;
    cursor: pointer;
    box-shadow: 0 18px 30px rgba(56, 110, 225, 0.28);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.auth-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 34px rgba(56, 110, 225, 0.34);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #7c8cab;
    font-size: 15px;
    font-weight: 600;
    margin: 4px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #d8dfeb;
}

.auth-provider-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 14px;
}

.auth-provider-btn {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid #747775;
    border-radius: 22px;
    background: #ffffff;
    color: #1f1f1f;
    font-family: "Manrope", Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    box-sizing: border-box;
    white-space: nowrap;
    transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.auth-provider-btn:hover {
    background: #f8fafd;
    border-color: #5f6368;
}

.auth-provider-btn:focus-visible {
    outline: 3px solid rgba(66, 133, 244, 0.28);
    outline-offset: 2px;
}

.auth-provider-logo {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    object-fit: contain;
}

.auth-provider-logo-google {
    background: #ffffff;
}

.auth-footer-note {
    margin-top: 22px;
    text-align: center;
    color: #687998;
    font-size: 16px;
    font-weight: 500;
}

.auth-footer-note a {
    color: #4d80dd;
    text-decoration: none;
    font-weight: 700;
}

.auth-footer-note a:hover {
    text-decoration: underline;
}

.auth-social-context {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: -10px 0 20px;
    padding: 12px 16px;
    border-radius: 999px;
    background: #eaf8ef;
    color: #267348;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 800;
}

.auth-social-context i {
    font-size: 18px;
}

.auth-plan-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.auth-plan-card {
    position: relative;
    min-height: 108px;
    padding: 15px;
    border: 1px solid #dce4f2;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
    color: #647390;
}

.auth-plan-card input {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.auth-plan-card span,
.auth-plan-card strong,
.auth-plan-card small {
    display: block;
    letter-spacing: 0;
}

.auth-plan-card span {
    margin-bottom: 8px;
    color: #6d7d99;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.auth-plan-card strong {
    color: #263d66;
    font-size: 22px;
    line-height: 1.15;
    font-weight: 850;
}

.auth-plan-card small {
    margin-top: 8px;
    color: #7a89a5;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 650;
}

.auth-plan-card.is-active {
    border-color: #5c8ef1;
    background: #f4f8ff;
    box-shadow: 0 14px 32px rgba(68, 120, 226, 0.14);
}

.auth-plan-card.is-soon {
    opacity: 0.66;
}

.auth-plan-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #dce6f5;
    border-radius: 16px;
    background: rgba(244, 248, 253, 0.82);
    color: #647390;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 650;
}

.auth-plan-note i {
    color: #2fb36d;
    font-size: 20px;
    flex-shrink: 0;
    margin-top: 1px;
}

.auth-flashes {
    position: fixed;
    top: 20px;
    left: 20px;
    right: 20px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.auth-flash {
    padding: 12px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(34, 55, 93, 0.12);
}

.auth-flash.is-success {
    background: #e6f8ea;
    color: #247243;
}

.auth-flash.is-warning {
    background: #fff3d6;
    color: #b97700;
}

.auth-flash.is-danger {
    background: #ffe4e4;
    color: #b42318;
}

.auth-error {
    font-size: 13px;
    font-weight: 600;
    color: #c23a3a;
    padding-left: 4px;
}

@media (max-width: 720px) {
    .auth-card {
        padding: 28px 20px 24px;
        border-radius: 24px;
    }

    .auth-brand-text {
        font-size: 28px;
    }

    .auth-title {
        font-size: 24px;
    }

    .auth-input {
        height: 54px;
        font-size: 16px;
    }

    .auth-submit {
        height: 58px;
        font-size: 18px;
    }

    .auth-row-split {
        align-items: flex-start;
        gap: 10px;
    }

    .auth-form-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .auth-choice-group,
    .auth-provider-grid,
    .auth-plan-grid {
        grid-template-columns: 1fr;
    }

    .auth-remember-wrap,
    .auth-link {
        font-size: 14px;
    }
}

@media (max-width: 420px) {
    .auth-row-split {
        flex-direction: column;
    }
}

@media (max-width: 420px) {
    .auth-provider-btn {
        white-space: normal;
        text-align: center;
    }
}
