.auth-page {
    position: relative;
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem 3rem;
    margin: 0 -0.75rem;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 2.25rem 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(21, 21, 21, 0.82);
    backdrop-filter: blur(18px);
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.auth-card--wide {
    max-width: 640px;
}

.auth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1.25rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.auth-icon {
    margin-bottom: 0.85rem;
    line-height: 1;
}

.auth-icon .auth-outline-icon {
    width: 2rem;
    height: 2rem;
    margin: 0 auto;
    display: block;
    color: rgba(255, 255, 255, 0.55);
}

.auth-outline-icon {
    stroke: currentColor;
    stroke-width: 1;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}

.auth-input-wrap .auth-outline-icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1.15rem;
    height: 1.15rem;
    color: #6c757d;
    transition: color 0.2s ease;
}

.auth-input-wrap:focus-within .auth-outline-icon {
    color: var(--primary-color);
}

.auth-header h1 {
    font-family: "Montserrat", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.35rem;
    letter-spacing: -0.02em;
}

.auth-header p {
    color: #9a9a9a;
    font-size: 0.9rem;
    margin: 0;
}

.auth-field {
    margin-bottom: 1.1rem;
}

.auth-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #b8b8b8;
    margin-bottom: 0.45rem;
}

.auth-input-wrap {
    position: relative;
}

.auth-input-wrap .form-control {
    padding: 0.75rem 0.95rem 0.75rem 2.85rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-input-wrap .form-control::placeholder {
    color: #6c757d;
}

.auth-input-wrap .form-control:focus {
    border-color: rgba(188, 31, 36, 0.65);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 3px rgba(188, 31, 36, 0.15);
    color: #fff;
}

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.35rem;
    gap: 0.75rem;
}

.auth-options .form-check-label {
    font-size: 0.875rem;
    color: #b0b0b0;
}

.auth-validation.validation-summary-valid {
    display: none;
}

.auth-field-hint {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.8rem;
    color: #6c757d;
}

.auth-checkboxes {
    margin: 1.25rem 0 1.35rem;
}

.auth-checkboxes .form-check {
    margin-bottom: 0.65rem;
}

.auth-checkboxes .form-check:last-child {
    margin-bottom: 0;
}

.auth-checkboxes .form-check-label {
    font-size: 0.875rem;
    color: #b0b0b0;
}

.auth-checkboxes .form-check-input,
.auth-options .form-check-input {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.25);
}

.auth-checkboxes .form-check-input:checked,
.auth-options .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.auth-checkboxes a {
    color: var(--link-color);
    text-decoration: none;
}

.auth-checkboxes a:hover {
    color: #c5cc4a;
    text-decoration: underline;
}

.auth-terms-error {
    display: none;
    margin-bottom: 0.85rem;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    background: rgba(188, 31, 36, 0.12);
    border: 1px solid rgba(188, 31, 36, 0.25);
    color: #ff8a8a;
    font-size: 0.875rem;
    text-align: center;
}

.auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #9a9a9a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-back-link:hover {
    color: #fff;
    text-decoration: none;
}

@media (max-width: 575.98px) {
    .auth-card {
        padding: 1.75rem 1.25rem;
        border-radius: 14px;
    }

    .auth-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .auth-options {
        flex-direction: column;
        align-items: flex-start;
    }
}

.auth-forgot-link {
    font-size: 0.875rem;
    color: #c8c8c8;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.auth-forgot-link:hover {
    color: #fff;
    text-decoration: none;
}

.auth-submit {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--primary-color);
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    background-color: var(--primary-color);
    color: #fff;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.auth-submit:hover {
    color: #fff;
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(188, 31, 36, 0.35);
}

.auth-submit:active {
    transform: translateY(0);
}

.auth-footer {
    margin-top: 1.5rem;
    padding-top: 1.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.auth-footer p {
    color: #8f8f8f;
    font-size: 0.875rem;
    margin-bottom: 0.65rem;
}

.auth-register-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-register-link:hover {
    color: #c5cc4a;
    text-decoration: none;
}

.auth-alert {
    border-radius: 10px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}
