/* Auth pages - Unified layout for allauth screens */
:root {
    --auth-card-max: 560px;
    --auth-card-wide: 820px;
    --auth-radius: 18px;
}

.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: calc(var(--section-pad) + 20px);
    padding-bottom: calc(var(--section-pad) + 20px);
}

.auth-shell {
    width: 100%;
    display: flex;
    justify-content: center;
}

.auth-card {
    width: min(100%, var(--auth-card-max));
    position: relative;
    background: rgba(7, 12, 20, 0.78);
    border: 1px solid rgba(0, 255, 234, 0.12);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
    clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
}

.auth-card.auth-card-wide {
    width: min(100%, var(--auth-card-wide));
}

.auth-card-inner {
    padding: clamp(1.6rem, 2vw, 2.6rem);
}

.auth-header {
    text-align: center;
    margin-bottom: 1.6rem;
}

.auth-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    text-transform: uppercase;
    letter-spacing: -0.5px;
    margin-bottom: 0.4rem;
}

.auth-subtitle {
    color: var(--text-tech);
    font-size: 0.98rem;
    margin-bottom: 0;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.auth-form .form-control {
    background: rgba(6, 10, 16, 0.7);
    border: 1px solid rgba(0, 255, 234, 0.15);
    color: #fff;
    padding: 0.7rem 0.9rem;
}

.auth-form .form-control:focus {
    border-color: rgba(0, 255, 234, 0.6);
    box-shadow: 0 0 0 0.2rem rgba(0, 255, 234, 0.15);
}

.auth-form .form-check {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-tech);
}

.auth-form .form-check-input {
    width: 2.6rem;
    height: 1.4rem;
    background-color: rgba(6, 10, 16, 0.9);
    border: 1px solid rgba(0, 255, 234, 0.2);
}

.auth-form .form-check-input:checked {
    background-color: var(--neon-blue);
    border-color: var(--neon-blue);
}

.auth-help {
    color: var(--text-tech);
    font-size: 0.85rem;
}

.auth-error {
    color: #ff8383;
    font-size: 0.85rem;
    margin-top: 0.35rem;
}

.auth-actions {
    display: grid;
    gap: 0.7rem;
    margin-top: 0.8rem;
}

.auth-actions .btn-tech,
.auth-actions .btn-tech-outline {
    width: 100%;
    justify-content: center;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-tech);
    margin: 1.6rem 0 1.2rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.auth-links,
.auth-footer {
    text-align: center;
    color: var(--text-tech);
    font-size: 0.95rem;
}

.auth-links a,
.auth-footer a {
    color: var(--neon-blue);
    font-weight: 600;
    text-decoration: none;
}

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

.auth-alert {
    background: rgba(255, 77, 29, 0.08);
    border: 1px solid rgba(255, 77, 29, 0.4);
    color: #ffd6c9;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.92rem;
    margin-bottom: 1rem;
}

.auth-note {
    color: var(--text-tech);
    font-size: 0.95rem;
}

.auth-meta {
    display: grid;
    gap: 0.75rem;
}

.auth-pill-list {
    display: grid;
    gap: 0.7rem;
}

.auth-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.9rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(5, 10, 18, 0.7);
}

.auth-pill small {
    color: var(--text-tech);
}

.auth-pill .form-check-input {
    margin: 0;
}

.auth-inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

/* Light theme adjustments */
body.light-theme .auth-card {
    background: #ffffff;
    border-color: #dbe4ef;
    color: #0b0e14;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

body.light-theme .auth-card .tech-card {
    background: #ffffff;
}

body.light-theme .auth-title {
    color: #0b0e14;
}

body.light-theme .auth-subtitle,
body.light-theme .auth-note,
body.light-theme .auth-links,
body.light-theme .auth-footer,
body.light-theme .auth-help {
    color: #4b5563;
}

body.light-theme .auth-divider::before,
body.light-theme .auth-divider::after {
    background: #e5e7eb;
}

body.light-theme .auth-form .form-control {
    background: #ffffff;
    color: #111827;
    border-color: #cbd5e1;
}

body.light-theme .auth-form .form-control:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 0.2rem rgba(14, 165, 233, 0.2);
}

body.light-theme .auth-form .form-check {
    color: #4b5563;
}

body.light-theme .auth-form .form-check-input {
    background-color: #ffffff;
    border-color: #cbd5e1;
}

body.light-theme .auth-pill {
    background: #f8fafc;
    border-color: #e2e8f0;
}

body.light-theme .auth-pill small {
    color: #64748b;
}

body.light-theme .auth-card .btn-tech-outline {
    color: #0b0e14 !important;
    border-color: #0ea5e9;
}

body.light-theme .auth-card .btn-tech-outline:hover {
    background: rgba(14, 165, 233, 0.08);
    box-shadow: 0 0 12px rgba(14, 165, 233, 0.25);
}

@media (max-width: 768px) {
    .auth-section {
        padding-top: calc(var(--section-pad) + 10px);
        padding-bottom: calc(var(--section-pad) + 10px);
    }

    .auth-card {
        clip-path: none;
        border-radius: var(--auth-radius);
    }

    .auth-card-inner {
        padding: 1.4rem;
    }
}
