/* Standalone auth pages (login, change password) — no sidebar */

body.car-rental-page.auth-page,
body.car-rental-page.auth-page *,
body.car-rental-page.auth-page *::before,
body.car-rental-page.auth-page *::after {
    box-sizing: border-box;
}

body.car-rental-page.auth-page {
    background:
        radial-gradient(1000px 500px at 85% -10%, rgba(4, 166, 225, 0.07), transparent 60%),
        radial-gradient(900px 500px at -10% 110%, rgba(54, 77, 149, 0.08), transparent 60%),
        var(--cr-bg);
    min-height: 100svh;
}

.auth-page .auth-shell {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    gap: 18px;
}

.auth-page .auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--cr-surface);
    border: 1px solid var(--cr-border);
    border-radius: 16px;
    box-shadow: var(--cr-shadow-sm), 0 12px 32px -8px rgba(16, 24, 40, 0.12);
    overflow: hidden;
}

.auth-page .auth-accent {
    height: 4px;
    background: linear-gradient(90deg, var(--cr-brand), var(--cr-accent));
}

.auth-page .auth-body {
    padding: 28px 28px 26px;
    overflow-x: hidden;
}

.auth-page .auth-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.auth-page .auth-logo {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--cr-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.auth-page .auth-logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.auth-page .auth-brand h1 {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
    color: var(--cr-text);
}

.auth-page .auth-brand p {
    font-size: 12.5px;
    color: var(--cr-text-3);
    margin: 2px 0 0;
}

.auth-page .auth-form-group {
    margin-bottom: 16px;
}

.auth-page .auth-form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--cr-text-2);
    font-weight: 600;
    font-size: 12.5px;
}

.auth-page .auth-input-wrap {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.auth-page .auth-input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--cr-text-3);
    display: flex;
    pointer-events: none;
}

.auth-page .auth-form-group input {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 11px 12px 11px 38px;
    border: 1px solid var(--cr-border-strong);
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    color: var(--cr-text);
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
    display: block;
}

.auth-page .auth-input-wrap:has(.auth-pwd-toggle) input {
    padding-right: 42px;
}

.auth-page .auth-form-group input.no-icon {
    padding-left: 12px;
}

.auth-page .auth-form-group input::placeholder {
    color: var(--cr-text-3);
}

.auth-page .auth-form-group input:focus {
    outline: none;
    border-color: var(--cr-brand);
    box-shadow: 0 0 0 3px rgba(54, 77, 149, 0.14);
}

.auth-page .auth-pwd-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: none;
    background: none;
    border-radius: 8px;
    color: var(--cr-text-3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-page .auth-pwd-toggle:hover {
    color: var(--cr-text-2);
    background: var(--cr-bg);
}

.auth-page .auth-btn {
    width: 100%;
    padding: 12px;
    min-height: 46px;
    background: var(--cr-brand);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14.5px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 6px;
    box-shadow: var(--cr-shadow-xs), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transition: background 0.15s;
    text-decoration: none;
}

.auth-page .auth-btn:hover {
    background: var(--cr-brand-dark);
}

.auth-page .auth-btn:active {
    transform: translateY(1px);
}

.auth-page .auth-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.auth-page .auth-btn-secondary {
    background: var(--cr-text-2);
    margin-top: 10px;
}

.auth-page .auth-btn-secondary:hover {
    background: #3d4656;
}

.auth-page .auth-btn-spinner {
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: auth-spin 0.7s linear infinite;
    display: none;
}

.auth-page .auth-btn.loading .auth-btn-spinner {
    display: inline-block;
}

@keyframes auth-spin {
    to { transform: rotate(360deg); }
}

.auth-page .auth-alert {
    padding: 11px 13px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 1.4;
}

.auth-page .auth-alert-error {
    background: #fef3f2;
    color: var(--cr-red);
    border: 1px solid #f4c6c0;
}

.auth-page .auth-alert-success {
    background: #f0fdf4;
    color: var(--cr-green);
    border: 1px solid #bbf7d0;
}

.auth-page .auth-foot {
    color: var(--cr-text-3);
    font-size: 12px;
    text-align: center;
}

.auth-page .auth-warning {
    background: #fffbeb;
    color: #92400e;
    border-bottom: 1px solid #fde68a;
    padding: 16px 20px;
    text-align: center;
}

.auth-page .auth-warning h2 {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 700;
}

.auth-page .auth-warning p {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
}

.auth-page .auth-requirements {
    background: var(--cr-brand-50);
    border: 1px solid var(--cr-brand-100);
    border-left: 4px solid var(--cr-accent);
    padding: 14px 16px;
    margin-bottom: 18px;
    border-radius: 10px;
}

.auth-page .auth-requirements h3 {
    margin: 0 0 8px;
    color: var(--cr-brand);
    font-size: 13px;
    font-weight: 700;
}

.auth-page .auth-requirements ul {
    margin: 0 0 0 18px;
    color: var(--cr-text-2);
    font-size: 13px;
    line-height: 1.5;
}

.auth-page .auth-cancel-wrap {
    display: block;
    margin-top: 10px;
}

.auth-page .auth-forgot-link {
    display: block;
    text-align: right;
    margin: -4px 0 14px;
    font-size: 12.5px;
}

.auth-page .auth-forgot-link a,
.auth-page .auth-back-link a {
    color: var(--cr-brand);
    text-decoration: none;
    font-weight: 500;
}

.auth-page .auth-forgot-link a:hover,
.auth-page .auth-back-link a:hover {
    text-decoration: underline;
}

.auth-page .auth-back-link {
    display: block;
    text-align: center;
    margin-top: 14px;
    font-size: 13px;
}

.auth-page .auth-panel[hidden] {
    display: none;
}

.auth-page .auth-intro {
    margin: 0 0 18px;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--cr-text-2);
}

@media (max-height: 640px) {
    .auth-page .auth-shell {
        justify-content: flex-start;
        padding-top: 12px;
        gap: 10px;
    }

    .auth-page .auth-body {
        padding: 18px 22px;
    }

    .auth-page .auth-brand {
        margin-bottom: 14px;
    }

    .auth-page .auth-logo {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .auth-page .auth-logo img {
        width: 30px;
        height: 30px;
    }

    .auth-page .auth-brand h1 {
        font-size: 16px;
    }

    .auth-page .auth-brand p {
        font-size: 11.5px;
    }

    .auth-page .auth-form-group {
        margin-bottom: 10px;
    }

    .auth-page .auth-foot {
        display: none;
    }
}

@media (max-height: 460px) {
    .auth-page .auth-brand {
        display: none;
    }
}
