/* ==========================================================================
   USA567 - Auth Pages Styles (Login & Register)
   American-inspired dark theme with patriotic red, white, blue + gold
   ========================================================================== */

/* Auth Section */
.auth-section {
    padding: 2rem 1rem 6rem;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(ellipse at top, var(--bg-secondary) 0%, var(--bg-primary) 70%);
    position: relative;
    overflow: hidden;
}

/* Decorative background elements */
.auth-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -30%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(220, 38, 38, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.auth-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -30%;
    width: 80%;
    height: 150%;
    background: radial-gradient(ellipse, rgba(59, 130, 246, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

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

/* Auth Card */
.auth-card {
    background: linear-gradient(145deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--border-primary);
    border-radius: 20px;
    padding: 1.75rem 1.25rem;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(220, 38, 38, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

/* Accent border glow on top */
.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 20px 20px 0 0;
}

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

.auth-header h1 {
    font-family: 'Prompt', sans-serif;
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.4;
}

/* Highlight text effect */
.auth-header h1::first-line {
    color: var(--accent-gold);
}

/* Auth Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-family: 'Prompt', sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-label::before {
    content: '';
    width: 3px;
    height: 14px;
    background: var(--accent-primary);
    border-radius: 2px;
}

.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    font-family: 'Sarabun', sans-serif;
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--bg-primary);
    border: 1px solid var(--border-secondary);
    border-radius: 12px;
    outline: none;
    transition: all 0.25s ease;
}

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

.form-input:hover {
    border-color: rgba(220, 38, 38, 0.4);
}

.form-input:focus {
    border-color: var(--accent-primary);
    box-shadow:
        0 0 0 4px rgba(220, 38, 38, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.2);
}

.form-hint {
    font-size: 0.8125rem;
    color: var(--text-muted);
    padding-left: 0.25rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-family: 'Prompt', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
}

.btn-full {
    width: 100%;
}

.btn-primary {
    background: var(--accent-gradient);
    color: var(--text-primary);
    box-shadow:
        0 4px 15px rgba(220, 38, 38, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 25px rgba(220, 38, 38, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

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

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--accent-secondary);
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.2);
}

.btn-outline:hover {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--accent-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

/* Auth Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

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

.auth-divider span {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Trust Signals */
.auth-trust-signals {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: linear-gradient(145deg, rgba(26, 34, 53, 0.8) 0%, rgba(17, 24, 39, 0.9) 100%);
    border-radius: 14px;
    border: 1px solid var(--border-primary);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.trust-items {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.trust-item svg {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    color: var(--accent-gold);
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.3));
}

.trust-item span {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

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

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

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

    .auth-card {
        padding: 2.25rem 2rem;
        border-radius: 24px;
    }

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

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

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

    .trust-item span {
        font-size: 0.875rem;
    }
}

/* Large Mobile / Phablet (576px+) */
@media (min-width: 576px) {
    .auth-container {
        max-width: 440px;
    }

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

/* Tablet (768px+) */
@media (min-width: 768px) {
    .auth-section {
        padding: 4rem 2rem 7rem;
    }

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

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

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

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

    .btn {
        padding: 1rem 1.75rem;
        font-size: 1.0625rem;
    }

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

    .trust-items {
        gap: 1rem;
    }

    .trust-item svg {
        width: 24px;
        height: 24px;
    }
}

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

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

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

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

/* Large Desktop (1280px+) */
@media (min-width: 1280px) {
    .auth-container {
        max-width: 500px;
    }

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

/* Extra Large (1536px+) */
@media (min-width: 1536px) {
    .auth-section {
        padding: 6rem 2rem 9rem;
    }
}
