/* ==========================================================================
   GB69 - AUTH PAGES STYLESHEET (Login / Register)
   Theme: Cyberpunk Neon Blue/Cyan
   ========================================================================== */

/* ==========================================================================
   AUTH SECTION
   ========================================================================== */
.auth-section {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem 6rem;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
    position: relative;
    overflow: hidden;
}

/* Background Effects */
.auth-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 20%, rgba(0, 229, 255, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(124, 77, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    animation: auth-bg-pulse 8s ease-in-out infinite;
}

@keyframes auth-bg-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.auth-container {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   AUTH CARD
   ========================================================================== */
.auth-card {
    background: linear-gradient(145deg, rgba(15, 21, 32, 0.95) 0%, rgba(21, 29, 46, 0.95) 100%);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.25rem;
    box-shadow: var(--shadow-lg),
                0 0 60px rgba(0, 229, 255, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
}

/* Card Glow Effect */
.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gradient);
    opacity: 0.8;
}

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

.auth-header h1 {
    font-family: var(--font-heading);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   AUTH FORM
   ========================================================================== */
.auth-form {
    margin-bottom: 1.25rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    outline: none;
    transition: border-color var(--transition-fast),
                box-shadow var(--transition-fast),
                background var(--transition-fast);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input:hover {
    border-color: var(--border-secondary);
    background: var(--bg-hover);
}

.form-input:focus {
    border-color: var(--accent-primary);
    background: var(--bg-hover);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.12),
                var(--shadow-neon);
}

.form-hint {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 0.375rem;
}

/* ==========================================================================
   AUTH BUTTONS
   ========================================================================== */
.auth-form .btn {
    margin-top: 0.5rem;
}

.btn-full {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Primary Button Styling */
.auth-card .btn-primary {
    padding: 0.9375rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    background: var(--accent-gradient);
    border: none;
    border-radius: var(--radius-md);
    color: var(--bg-primary);
    cursor: pointer;
    transition: transform var(--transition-fast),
                box-shadow var(--transition-fast),
                filter var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.auth-card .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.auth-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--accent-glow), var(--shadow-md);
    filter: brightness(1.1);
}

.auth-card .btn-primary:hover::before {
    left: 100%;
}

.auth-card .btn-primary:active {
    transform: translateY(0);
}

/* Outline Button Styling */
.auth-card .btn-outline {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    background: transparent;
    border: 1px solid var(--accent-primary);
    border-radius: var(--radius-md);
    color: var(--accent-primary);
    cursor: pointer;
    transition: background var(--transition-fast),
                color var(--transition-fast),
                box-shadow var(--transition-fast);
}

.auth-card .btn-outline:hover {
    background: rgba(0, 229, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.15);
}

/* ==========================================================================
   AUTH DIVIDER
   ========================================================================== */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-primary), transparent);
}

.auth-divider span {
    padding: 0 1rem;
    font-family: var(--font-body);
}

/* ==========================================================================
   TRUST SIGNALS (AUTH PAGES)
   ========================================================================== */
.trust-signals-auth {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: linear-gradient(145deg, rgba(0, 229, 255, 0.03) 0%, rgba(124, 77, 255, 0.02) 100%);
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-md);
    position: relative;
}

.trust-signals-auth::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 20%;
    right: 20%;
    height: 1px;
    background: var(--accent-gradient);
    opacity: 0.5;
}

.trust-signals-auth h3 {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.trust-signals-auth ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.75rem;
}

.trust-signals-auth li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.trust-signals-auth li svg {
    width: 20px;
    height: 20px;
    min-width: 20px;
    color: var(--accent-primary);
    flex-shrink: 0;
    margin-top: 2px;
    filter: drop-shadow(0 0 4px rgba(0, 229, 255, 0.3));
}

.trust-signals-auth li span {
    flex: 1;
}

/* ==========================================================================
   RESPONSIVE STYLES
   ========================================================================== */

/* Small Mobile (360px+) */
@media (min-width: 360px) {
    .auth-card {
        padding: 2rem 1.5rem;
    }

    .auth-header h1 {
        font-size: 1.5rem;
    }

    .trust-signals-auth {
        padding: 1.5rem;
    }

    .trust-signals-auth h3 {
        font-size: 0.9375rem;
    }
}

/* Medium Mobile (480px+) */
@media (min-width: 480px) {
    .auth-section {
        padding: 3rem 1.5rem 7rem;
    }

    .auth-card {
        padding: 2.5rem 2rem;
    }

    .auth-header h1 {
        font-size: 1.625rem;
    }

    .form-input {
        padding: 1rem 1.125rem;
    }

    .auth-card .btn-primary,
    .auth-card .btn-outline {
        padding: 1rem 1.5rem;
    }
}

/* Large Mobile / Phablet (576px+) */
@media (min-width: 576px) {
    .auth-header h1 {
        font-size: 1.75rem;
    }

    .trust-signals-auth li {
        font-size: 0.9375rem;
    }

    .trust-signals-auth li svg {
        width: 22px;
        height: 22px;
        min-width: 22px;
    }
}

/* Tablet (768px+) */
@media (min-width: 768px) {
    .auth-section {
        padding: 4rem 2rem 8rem;
        min-height: calc(100vh - 180px);
    }

    .auth-container {
        max-width: 480px;
    }

    .auth-card {
        padding: 3rem 2.5rem;
        border-radius: var(--radius-lg);
    }

    .auth-header {
        margin-bottom: 2rem;
    }

    .auth-header h1 {
        font-size: 1.875rem;
    }

    .form-group {
        margin-bottom: 1.5rem;
    }

    .form-label {
        font-size: 1rem;
    }

    .form-input {
        padding: 1.125rem 1.25rem;
        font-size: 1.0625rem;
    }

    .auth-card .btn-primary,
    .auth-card .btn-outline {
        padding: 1.125rem 2rem;
        font-size: 1.0625rem;
    }

    .trust-signals-auth {
        margin-top: 2rem;
        padding: 1.75rem;
    }

    .trust-signals-auth h3 {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }

    .trust-signals-auth ul {
        gap: 1rem;
    }

    .trust-signals-auth li {
        font-size: 1rem;
        gap: 1rem;
    }

    .trust-signals-auth li svg {
        width: 24px;
        height: 24px;
        min-width: 24px;
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    .auth-section {
        padding: 5rem 2rem 9rem;
    }

    .auth-container {
        max-width: 500px;
    }

    .auth-card {
        padding: 3.5rem 3rem;
    }

    .auth-header h1 {
        font-size: 2rem;
    }
}

/* Large Desktop (1280px+) */
@media (min-width: 1280px) {
    .auth-section {
        padding: 6rem 2rem 10rem;
    }

    .auth-header h1 {
        font-size: 2.125rem;
    }
}

/* ==========================================================================
   ACCESSIBILITY ENHANCEMENTS
   ========================================================================== */

/* Focus visible for keyboard navigation */
.form-input:focus-visible,
.auth-card .btn-primary:focus-visible,
.auth-card .btn-outline:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .auth-section::before {
        animation: none;
    }

    .auth-card .btn-primary::before {
        display: none;
    }

    .auth-card .btn-primary:hover {
        transform: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .auth-card {
        border-width: 2px;
    }

    .form-input {
        border-width: 2px;
    }

    .form-input:focus {
        border-width: 3px;
    }
}
