/* ============================================================
   2026 AUTH / LANDING LAYOUT
   ============================================================ */

.auth-shell {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    overflow: hidden;
    background: radial-gradient(
        ellipse at 30% 20%,
        #9a0031 0%,
        #820029 40%,
        #4a0018 100%
    );
    font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* Ambient gradient overlay — diagonal light sweep */
.auth-background {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            600px circle at 70% 80%,
            rgba(182, 153, 86, 0.08),
            transparent
        ),
        linear-gradient(
            135deg,
            rgba(255,255,255,0.04) 0%,
            transparent 50%
        );
    pointer-events: none;
}

/* Subtle grain texture for depth */
.auth-background::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
}

/* Centering container */
.auth-container {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

/* Glassmorphism card */
.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 2.75rem 2.5rem;
    text-align: center;

    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(20px) saturate(1.4);
    -webkit-backdrop-filter: blur(20px) saturate(1.4);

    border-radius: 28px;
    border: 1px solid rgba(255,255,255,0.18);

    box-shadow:
        0 32px 64px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.15);

    animation: authCardEnter 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes authCardEnter {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Logo */
.auth-logo {
    max-width: 140px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
}

/* Gold accent line under logo */
.auth-logo + .auth-title::before {
    content: '';
    display: block;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #b69956, transparent);
    margin: 0 auto 1.5rem;
}

/* Typography */
.auth-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
}

.auth-subtitle {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.70);
    margin-bottom: 2.25rem;
    line-height: 1.6;
}

/* Primary CTA */
.btn-auth-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 50px;

    border-radius: 14px;
    background: linear-gradient(
        135deg,
        rgba(182, 153, 86, 0.22),
        rgba(255, 255, 255, 0.08)
    );

    color: #ffffff;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    text-decoration: none;

    border: 1px solid rgba(182, 153, 86, 0.30);
    backdrop-filter: blur(8px);

    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255,255,255,0.15);

    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: pointer;
}

.btn-auth-primary:hover {
    transform: translateY(-2px);
    background: linear-gradient(
        135deg,
        rgba(182, 153, 86, 0.32),
        rgba(255, 255, 255, 0.12)
    );
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(182, 153, 86, 0.1),
        inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-auth-primary:active {
    transform: translateY(0);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255,255,255,0.15);
}

/* Footer */
.auth-footer {
    margin-top: 2.5rem;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
    letter-spacing: 0.01em;
}

.auth-footer strong {
    color: rgba(255,255,255,0.6);
}

/* Responsive tweaks */
@media (max-width: 576px) {
    .auth-card {
        padding: 2.25rem 1.75rem;
        border-radius: 22px;
    }

    .auth-title {
        font-size: 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-card {
        animation: none;
    }
}

/* ============================================================
   AUTH FORM ELEMENTS (LOGIN PAGE)
   ============================================================ */

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

.auth-field {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.auth-field label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
    margin-bottom: 6px;
}

.auth-field input {
    height: 48px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.20);
    background: rgba(255,255,255,0.08);
    color: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;

    backdrop-filter: blur(6px);
    transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.auth-field input::placeholder {
    color: rgba(255,255,255,0.4);
}

.auth-field input:focus {
    outline: none;
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.14);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.08);
}

/* Password toggle input group */
.auth-input-group {
    display: flex;
}

.auth-input-group input {
    flex: 1;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
    border-right: none;
}

.auth-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    border: 1px solid rgba(255,255,255,0.20);
    border-left: none;
    border-radius: 0 12px 12px 0;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-toggle-btn:hover {
    color: rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.10);
}

.auth-input-group input:focus + .auth-toggle-btn {
    border-color: rgba(255,255,255,0.5);
}

/* Alerts */
.auth-alert {
    background: rgba(255, 80, 80, 0.12);
    border: 1px solid rgba(255, 80, 80, 0.3);
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    text-align: left;
    line-height: 1.5;
}

/* Info */
.auth-info {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 1rem;
}

.auth-info a {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* All links inside auth card */
.auth-card a,
.auth-card a:visited,
.auth-link,
.auth-link:visited {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-card a:hover,
.auth-link:hover {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Ensure the form widget input inside auth-field matches our style */
.auth-field .form-control,
.auth-field input[type="email"],
.auth-field input[type="password"],
.auth-field input[type="text"] {
    height: 48px;
    padding: 0 16px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.20);
    background: rgba(255,255,255,0.08);
    color: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    backdrop-filter: blur(6px);
    transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
    width: 100%;
    box-sizing: border-box;
}

.auth-field .form-control:focus,
.auth-field input:focus {
    outline: none;
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.14);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.08);
}

.auth-field .form-control::placeholder,
.auth-field input::placeholder {
    color: rgba(255,255,255,0.4);
}

/* Alert variants */
.auth-alert-warning {
    background: rgba(255, 180, 50, 0.12);
    border-color: rgba(255, 180, 50, 0.3);
}

.auth-alert-success {
    background: rgba(80, 200, 120, 0.12);
    border-color: rgba(80, 200, 120, 0.3);
}

/* Password hint box */
.auth-hint {
    text-align: left;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
    margin-top: -0.25rem;
}

.auth-hint strong {
    color: rgba(255,255,255,0.65);
}

.auth-hint ul {
    margin: 0.25rem 0 0;
    padding-left: 1.25rem;
}

.auth-hint ul li {
    color: rgba(255,255,255,0.5);
}

/* Meta links below form */
.auth-meta {
    margin-top: 1.25rem;
    text-align: center;
}

/* Form errors */
.auth-field .form-error-message,
.auth-field ul li {
    color: rgba(255, 120, 120, 0.9);
    font-size: 0.78rem;
    margin-top: 0.35rem;
    list-style: none;
    padding: 0;
}
