/* ==========================================================================
   UFA365 - Auth Pages Styles (Login & Register)
   Royal Blue & Gold Theme
   ========================================================================== */

/* ==========================================================================
   AUTH SECTION
   ========================================================================== */
.auth-section {
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem 6rem;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    position: relative;
    overflow: hidden;
}

/* Background decoration */
.auth-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(37, 99, 235, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 70% 70%, rgba(245, 166, 35, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

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

/* ==========================================================================
   AUTH CARD
   ========================================================================== */
.auth-card {
    background: var(--bg-tertiary);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-lg), 0 0 60px rgba(37, 99, 235, 0.1);
    border: 1px solid var(--border-primary);
    position: relative;
    overflow: hidden;
}

/* Card top accent line */
.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
}

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

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

/* ==========================================================================
   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.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

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

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

.form-input:hover {
    border-color: rgba(37, 99, 235, 0.3);
}

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

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

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

.btn-primary {
    background: var(--accent-gradient);
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(37, 99, 235, 0.5);
}

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

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

.btn-outline:hover {
    border-color: var(--accent-primary);
    background: rgba(37, 99, 235, 0.1);
}

.btn-full {
    width: 100%;
}

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

.auth-divider span {
    padding: 0 1rem;
}

/* ==========================================================================
   TRUST SIGNALS
   ========================================================================== */
.auth-trust {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.auth-trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    background: rgba(37, 99, 235, 0.08);
    border-radius: 50px;
    border: 1px solid rgba(37, 99, 235, 0.15);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.auth-trust-item:hover {
    background: rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.25);
}

.auth-trust-item svg {
    width: 18px;
    height: 18px;
    color: var(--accent-secondary);
    flex-shrink: 0;
}

/* ==========================================================================
   RESPONSIVE - SMALL MOBILE (360px)
   ========================================================================== */
@media (min-width: 360px) {
    .auth-header h1 {
        font-size: 1.6rem;
    }

    .auth-trust-item {
        padding: 0.5rem 1rem;
        font-size: 0.825rem;
    }
}

/* ==========================================================================
   RESPONSIVE - MEDIUM MOBILE (480px)
   ========================================================================== */
@media (min-width: 480px) {
    .auth-card {
        padding: 2.5rem 2rem;
    }

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

    .auth-trust {
        gap: 1rem;
    }

    .auth-trust-item {
        padding: 0.625rem 1.125rem;
        font-size: 0.85rem;
    }

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

/* ==========================================================================
   RESPONSIVE - LARGE MOBILE / PHABLET (576px)
   ========================================================================== */
@media (min-width: 576px) {
    .auth-section {
        padding: 2.5rem 1.5rem 6rem;
    }

    .auth-card {
        padding: 2.5rem;
    }

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

/* ==========================================================================
   RESPONSIVE - TABLET (768px)
   ========================================================================== */
@media (min-width: 768px) {
    .auth-section {
        padding: 3rem 2rem 6rem;
        min-height: calc(100vh - 200px);
    }

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

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

    .form-input {
        padding: 1rem 1.25rem;
        font-size: 1.05rem;
    }

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

/* ==========================================================================
   RESPONSIVE - DESKTOP (1024px)
   ========================================================================== */
@media (min-width: 1024px) {
    .auth-section {
        padding: 4rem 2rem 6rem;
    }

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

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

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

/* ==========================================================================
   RESPONSIVE - LARGE DESKTOP (1280px+)
   ========================================================================== */
@media (min-width: 1280px) {
    .auth-section {
        padding: 5rem 2rem 6rem;
    }

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

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