/* ==========================================================================
   KuBet Thailand - Auth Pages Stylesheet (Login/Register)
   ========================================================================== */

/* Auth Section */
.auth-section {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem 6rem;
    background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(30, 58, 138, 0.2) 50%, #0c1222 100%);
}

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

/* Auth Card */
.auth-card {
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid var(--border-accent);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(37, 99, 235, 0.15);
}

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

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

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* 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-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
}

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

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

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

.form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
    background: var(--bg-tertiary);
}

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

/* Auth Form Button */
.auth-form .btn-primary {
    margin-top: 0.5rem;
    padding: 1rem 1.5rem;
    background: var(--gold-gradient);
    color: #1a1a2e;
    box-shadow: var(--shadow-gold);
}

.auth-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(245, 158, 11, 0.5);
}

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

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

.auth-divider span {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Auth Links */
.auth-links {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-links a {
    color: var(--accent-light);
    text-decoration: none;
    font-size: 0.9375rem;
}

.auth-links a:hover {
    color: var(--gold-light);
    text-decoration: underline;
}

/* ==========================================================================
   TRUST SIGNALS SECTION
   ========================================================================== */
.trust-signals {
    margin-top: 2rem;
}

.trust-signals-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.trust-signal-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 1rem;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border-secondary);
    border-radius: 12px;
    text-align: center;
    transition: border-color 0.25s, transform 0.25s;
}

.trust-signal-item:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.trust-signal-item svg {
    color: var(--gold-primary);
    flex-shrink: 0;
}

.trust-signal-item span {
    font-family: 'Prompt', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
}

.trust-signal-item p {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

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

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

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

    .trust-signal-item {
        padding: 1rem 0.75rem;
    }

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

/* Small Mobile (360px+) */
@media (min-width: 360px) {
    .trust-signals-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .trust-signal-item {
        padding: 1rem 0.75rem;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    .trust-signals-grid {
        gap: 1.25rem;
    }

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

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    .auth-section {
        padding: 4rem 3rem 6rem;
    }

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

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

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

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

    .trust-signal-item {
        padding: 1.75rem 1.25rem;
    }

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