/* ==========================================================================
   460Bet - Auth Pages Stylesheet (Login/Register)
   Warm Orange & Gold Theme with Ember Glow Effects
   ========================================================================== */

/* ==========================================================================
   AUTH SECTION
   ========================================================================== */
.auth-section {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem 7rem;
    background: var(--bg-primary);
    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 20% 20%, rgba(249, 115, 22, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(251, 191, 36, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(234, 88, 12, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

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

/* ==========================================================================
   AUTH CARD
   ========================================================================== */
.auth-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    box-shadow:
        var(--shadow-lg),
        0 0 40px rgba(249, 115, 22, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

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

/* ==========================================================================
   AUTH HEADER
   ========================================================================== */
.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    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-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   AUTH FORM
   ========================================================================== */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Form Group */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Form Label */
.form-label {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

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

.form-input:hover {
    border-color: rgba(249, 115, 22, 0.3);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow:
        0 0 0 3px rgba(249, 115, 22, 0.15),
        0 0 20px rgba(249, 115, 22, 0.1);
    background: var(--bg-hover);
}

/* Form Hint */
.form-hint {
    font-size: 0.8125rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

/* ==========================================================================
   AUTH DIVIDER
   ========================================================================== */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    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);
}

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

.btn-full {
    width: 100%;
}

.btn-primary {
    background: var(--accent-gradient);
    color: var(--text-primary);
    box-shadow:
        0 4px 15px rgba(249, 115, 22, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.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;
}

.btn-primary:hover {
    background: var(--accent-gradient-hover);
    transform: translateY(-2px);
    box-shadow:
        0 6px 20px rgba(249, 115, 22, 0.4),
        0 0 30px rgba(249, 115, 22, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

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

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

.btn-outline {
    background: transparent;
    color: var(--accent-primary);
    border: 2px solid var(--accent-primary);
}

.btn-outline:hover {
    background: rgba(249, 115, 22, 0.1);
    border-color: var(--accent-secondary);
    color: var(--accent-secondary);
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.15);
}

/* ==========================================================================
   TRUST SIGNALS
   ========================================================================== */
.trust-signals {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-primary);
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0.75rem;
    flex: 1;
    text-align: center;
    background: rgba(249, 115, 22, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(249, 115, 22, 0.08);
    transition: all 0.3s ease;
}

.trust-item:hover {
    background: rgba(249, 115, 22, 0.06);
    border-color: rgba(249, 115, 22, 0.15);
    transform: translateY(-2px);
}

.trust-item svg {
    color: var(--accent-primary);
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px rgba(249, 115, 22, 0.3));
}

.trust-item span {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.3;
}

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

/* Extra Small Mobile (< 360px) */
@media (max-width: 359px) {
    .auth-section {
        padding: 1.5rem 0.75rem 6rem;
    }

    .auth-card {
        padding: 1.5rem 1rem;
        border-radius: 16px;
    }

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

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

    .trust-signals {
        flex-direction: column;
        gap: 0.75rem;
    }

    .trust-item {
        flex-direction: row;
        justify-content: flex-start;
        gap: 0.75rem;
        padding: 0.875rem 1rem;
    }

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

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

/* Small Mobile (360px - 479px) */
@media (min-width: 360px) and (max-width: 479px) {
    .auth-card {
        padding: 1.75rem 1.25rem;
    }

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

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

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

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

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

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

    .trust-item {
        padding: 1.25rem 1rem;
    }

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

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

/* Large Mobile / Phablet (576px - 767px) */
@media (min-width: 576px) {
    .auth-section {
        padding: 3rem 2rem 8rem;
    }

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

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

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

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

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

    .auth-card {
        padding: 3rem 2.5rem;
        border-radius: 24px;
    }

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

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

    .trust-signals {
        gap: 1.5rem;
        padding-top: 2.5rem;
        margin-top: 2.5rem;
    }

    .trust-item {
        padding: 1.5rem 1.25rem;
    }

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

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

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    .auth-section {
        min-height: calc(100vh - 80px);
    }

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

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

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

    .trust-item {
        padding: 1.5rem;
    }
}

/* Large Desktop (1280px+) */
@media (min-width: 1280px) {
    .auth-section::before {
        background:
            radial-gradient(ellipse at 30% 30%, rgba(249, 115, 22, 0.1) 0%, transparent 40%),
            radial-gradient(ellipse at 70% 70%, rgba(251, 191, 36, 0.08) 0%, transparent 40%);
    }

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

    .trust-item {
        padding: 1.75rem 1.5rem;
    }

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

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow:
            var(--shadow-lg),
            0 0 40px rgba(249, 115, 22, 0.1);
    }
    50% {
        box-shadow:
            var(--shadow-lg),
            0 0 60px rgba(249, 115, 22, 0.15);
    }
}

.auth-card {
    animation: fadeInUp 0.5s ease-out;
}

/* Focus Visible States */
.form-input:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .auth-card,
    .btn,
    .trust-item {
        animation: none;
        transition: none;
    }

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