/* ==========================================================================
   LOTTO888 AUTH PAGES - Login & Register Styles
   ========================================================================== */

/* ==========================================================================
   AUTH SECTION
   ========================================================================== */

.auth-section {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background-image:
        radial-gradient(ellipse at 30% 20%, rgba(229, 57, 53, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(255, 193, 7, 0.05) 0%, transparent 50%);
}

.auth-container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* ==========================================================================
   AUTH CARD
   ========================================================================== */

.auth-card {
    background: rgba(37, 29, 42, 0.9);
    border: 1px solid rgba(229, 57, 53, 0.2);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(229, 57, 53, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

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

.auth-header h1 {
    font-family: 'Prompt', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.4;
    margin: 0;
}

/* ==========================================================================
   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-weight: 500;
    color: #b8a9c4;
    font-size: 0.9375rem;
}

.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: #1a1520;
    border: 1px solid rgba(229, 57, 53, 0.2);
    border-radius: 12px;
    color: #ffffff;
    font-size: 1rem;
    font-family: 'Sarabun', sans-serif;
    transition: all 0.25s ease;
}

.form-input:hover {
    border-color: rgba(229, 57, 53, 0.4);
}

.form-input:focus {
    outline: none;
    border-color: #e53935;
    box-shadow: 0 0 0 3px rgba(229, 57, 53, 0.15);
    background: #251d2a;
}

.form-input::placeholder {
    color: #7c6a8a;
}

.form-hint {
    font-size: 0.8125rem;
    color: #7c6a8a;
    padding-left: 0.25rem;
}

/* ==========================================================================
   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,
        rgba(229, 57, 53, 0.3),
        transparent
    );
}

.auth-divider span {
    color: #7c6a8a;
    font-size: 0.875rem;
    font-weight: 500;
}

/* ==========================================================================
   TRUST SIGNALS
   ========================================================================== */

.trust-signals {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.625rem;
    padding: 1rem;
    background: rgba(37, 29, 42, 0.6);
    border: 1px solid rgba(229, 57, 53, 0.15);
    border-radius: 12px;
    min-width: 90px;
    transition: all 0.25s ease;
}

.trust-item:hover {
    transform: translateY(-3px);
    border-color: rgba(229, 57, 53, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.trust-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(229, 57, 53, 0.1);
    border-radius: 50%;
    color: #e53935;
    transition: all 0.25s ease;
}

.trust-icon-gold {
    background: rgba(255, 193, 7, 0.1);
    color: #ffc107;
}

.trust-item:hover .trust-icon {
    background: rgba(229, 57, 53, 0.15);
    box-shadow: 0 0 20px rgba(229, 57, 53, 0.2);
}

.trust-item:hover .trust-icon-gold {
    background: rgba(255, 193, 7, 0.15);
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.2);
}

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

.trust-item span {
    font-family: 'Prompt', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    color: #b8a9c4;
    text-align: center;
    white-space: nowrap;
}

/* ==========================================================================
   AUTH BUTTONS (Override base styles for auth pages)
   ========================================================================== */

.auth-card .btn {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    border-radius: 12px;
}

.auth-card .btn-primary {
    background: linear-gradient(135deg, #e53935 0%, #c62828 50%, #b71c1c 100%);
    box-shadow: 0 4px 20px rgba(229, 57, 53, 0.4);
}

.auth-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(229, 57, 53, 0.55);
}

.auth-card .btn-outline {
    background: transparent;
    border: 2px solid rgba(229, 57, 53, 0.3);
    color: #ffffff;
}

.auth-card .btn-outline:hover {
    border-color: #e53935;
    background: rgba(229, 57, 53, 0.1);
}

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

/* 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.25rem;
    }

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

    .trust-signals {
        gap: 0.75rem;
    }

    .trust-item {
        padding: 0.75rem;
        min-width: 80px;
    }

    .trust-icon {
        width: 48px;
        height: 48px;
    }

    .trust-icon svg {
        width: 26px;
        height: 26px;
    }

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

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

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

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

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

    .trust-signals {
        gap: 1.25rem;
    }

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

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

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

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

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

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

    .trust-signals {
        gap: 1.5rem;
    }

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

    .trust-icon {
        width: 60px;
        height: 60px;
    }

    .trust-icon svg {
        width: 34px;
        height: 34px;
    }

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

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

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

    .auth-card {
        padding: 3rem;
    }

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

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

    .auth-form {
        gap: 1.5rem;
    }

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

    .form-input {
        padding: 1.25rem 1.5rem;
        font-size: 1.0625rem;
        border-radius: 14px;
    }

    .form-hint {
        font-size: 0.875rem;
    }

    .auth-card .btn {
        padding: 1.125rem 1.75rem;
        font-size: 1.0625rem;
        border-radius: 14px;
    }

    .trust-signals {
        gap: 2rem;
    }

    .trust-item {
        min-width: 120px;
        padding: 1.5rem;
        border-radius: 16px;
    }

    .trust-icon {
        width: 64px;
        height: 64px;
    }

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

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

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

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

    .auth-card {
        padding: 3.5rem;
    }

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

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

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

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

/* ==========================================================================
   FOCUS STATES (Accessibility)
   ========================================================================== */

.auth-card .btn:focus-visible {
    outline: 2px solid #e53935;
    outline-offset: 2px;
}

.form-input:focus-visible {
    outline: none;
}

.trust-item:focus-visible {
    outline: 2px solid #e53935;
    outline-offset: 2px;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

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

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

.trust-signals {
    animation: fadeInUp 0.5s ease-out 0.1s both;
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .auth-card,
    .trust-signals {
        animation: none;
    }

    .trust-item,
    .trust-icon,
    .form-input,
    .auth-card .btn {
        transition: none;
    }
}
