/* ==========================================================================
   UFABET888 - Auth Pages Stylesheet (Login/Register)
   Electric Blue & Gold Theme - Professional Dark Mode Design
   ========================================================================== */

/* ==========================================================================
   AUTH SECTION - Main Container
   ========================================================================== */
.auth-section {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(0, 180, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(255, 215, 0, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(0, 229, 255, 0.03) 0%, transparent 70%),
        var(--bg-primary);
    position: relative;
    overflow: hidden;
}

/* Animated background glow effect */
.auth-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(0, 180, 255, 0.04) 0%, transparent 40%);
    animation: authGlow 15s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes authGlow {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(5%, 5%);
    }
}

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

/* ==========================================================================
   AUTH CARD - Form Container
   ========================================================================== */
.auth-card {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 1px solid var(--border-primary);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    box-shadow:
        0 8px 32px rgba(0, 180, 255, 0.15),
        0 0 1px rgba(0, 180, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Top accent gradient line */
.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-gradient);
}

/* Corner glow effect */
.auth-card::after {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0, 180, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

/* ==========================================================================
   AUTH HEADER
   ========================================================================== */
.auth-header {
    text-align: center;
    margin-bottom: 1.75rem;
    position: relative;
    z-index: 1;
}

.auth-header h1 {
    font-family: 'Prompt', sans-serif;
    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(--accent-primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

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

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

.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--bg-primary);
    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(0, 180, 255, 0.3);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow:
        0 0 0 3px rgba(0, 180, 255, 0.15),
        0 0 20px rgba(0, 180, 255, 0.1);
    background: rgba(10, 14, 26, 0.9);
}

.form-hint {
    font-family: 'Sarabun', sans-serif;
    font-size: 0.8125rem;
    color: var(--text-muted);
    padding-left: 0.25rem;
}

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

.btn-full {
    width: 100%;
}

.btn-primary {
    background: var(--accent-gradient);
    color: var(--bg-primary);
    box-shadow:
        0 4px 16px rgba(0, 180, 255, 0.3),
        0 0 1px rgba(0, 180, 255, 0.5);
}

.btn-primary:hover {
    background: var(--accent-gradient-hover);
    transform: translateY(-2px);
    box-shadow:
        0 6px 24px rgba(0, 180, 255, 0.4),
        0 0 30px rgba(0, 180, 255, 0.2);
    color: var(--bg-primary);
}

.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(0, 180, 255, 0.1);
    border-color: var(--accent-tertiary);
    color: var(--accent-tertiary);
    transform: translateY(-2px);
}

/* ==========================================================================
   AUTH DIVIDER
   ========================================================================== */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
    position: relative;
    z-index: 1;
}

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

.auth-divider span {
    font-family: 'Sarabun', sans-serif;
    color: var(--text-muted);
    font-size: 0.875rem;
    padding: 0 0.5rem;
}

/* ==========================================================================
   TRUST SIGNALS
   ========================================================================== */
.trust-signals {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1.5rem 1rem;
    background: linear-gradient(180deg, rgba(0, 180, 255, 0.03) 0%, rgba(255, 215, 0, 0.02) 100%);
    border-radius: 16px;
    border: 1px solid var(--border-primary);
    position: relative;
}

.trust-signals::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(0, 180, 255, 0.2) 0%, transparent 50%, rgba(255, 215, 0, 0.1) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    min-width: 90px;
    transition: transform 0.3s ease;
}

.trust-item:hover {
    transform: translateY(-2px);
}

.trust-item svg {
    width: 36px;
    height: 36px;
    color: var(--accent-primary);
    filter: drop-shadow(0 0 8px rgba(0, 180, 255, 0.3));
    transition: all 0.3s ease;
}

.trust-item:hover svg {
    color: var(--accent-tertiary);
    filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.5));
}

.trust-item span {
    font-family: 'Sarabun', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
    white-space: nowrap;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

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

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

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

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

    .trust-signals {
        gap: 0.5rem;
        padding: 1rem 0.75rem;
    }

    .trust-item {
        min-width: 70px;
        padding: 0.5rem;
    }

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

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

/* Small Mobile (360px - 479px) */
@media (min-width: 360px) {
    .auth-header h1 {
        font-size: 1.375rem;
    }

    .trust-signals {
        gap: 1rem;
    }

    .trust-item {
        min-width: 85px;
    }
}

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

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

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

    .trust-item {
        min-width: 100px;
    }

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

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

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

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

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

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

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

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

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

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

    .auth-form .btn {
        padding: 1.125rem 1.75rem;
        font-size: 1.0625rem;
    }

    .trust-signals {
        padding: 1.75rem 2rem;
        gap: 2rem;
    }

    .trust-item {
        min-width: 110px;
        padding: 1rem;
    }

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

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

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

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

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

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

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

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