/* ==========================================================================
   AUTH PAGES STYLES - Heng36 Emerald Fortune Theme
   Login & Register Pages
   ========================================================================== */

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

/* Background decoration */
.auth-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: radial-gradient(ellipse at center, rgba(16, 185, 129, 0.06) 0%, transparent 60%);
    transform: translateX(-50%);
    pointer-events: none;
}

.auth-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-primary), transparent);
}

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

/* ==========================================================================
   AUTH CARD
   ========================================================================== */
.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-primary);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-lg), 0 0 40px rgba(16, 185, 129, 0.08);
    position: relative;
    overflow: hidden;
}

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

/* ==========================================================================
   AUTH HEADER
   ========================================================================== */
.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;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   AUTH FORM
   ========================================================================== */
.auth-form {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-family: 'Prompt', sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

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

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

.form-input:hover {
    border-color: rgba(16, 185, 129, 0.3);
}

.form-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15), 0 0 20px rgba(16, 185, 129, 0.1);
}

.form-hint {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

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

.auth-card .btn-primary {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.35);
}

.auth-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(16, 185, 129, 0.5);
}

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

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

.auth-card .btn-outline:hover {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--accent-secondary);
    transform: translateY(-2px);
}

.auth-card .btn-full {
    width: 100%;
}

/* ==========================================================================
   AUTH DIVIDER
   ========================================================================== */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
}

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

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

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

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

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

.trust-item svg {
    color: var(--accent-primary);
    transition: all 0.3s ease;
}

.trust-item:hover svg {
    color: var(--accent-secondary);
    filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.4));
}

.trust-item span {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* ==========================================================================
   RESPONSIVE - EXTRA SMALL MOBILE (< 360px)
   ========================================================================== */
@media (max-width: 359px) {
    .auth-section {
        padding: 1.5rem 0.75rem 5.5rem;
    }

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

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

    .form-input {
        padding: 0.8125rem 0.875rem;
        font-size: 0.9375rem;
    }

    .auth-card .btn {
        padding: 0.8125rem 1.25rem;
        font-size: 0.9375rem;
    }

    .trust-signals {
        gap: 1rem;
        flex-wrap: wrap;
    }

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

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

/* ==========================================================================
   RESPONSIVE - SMALL MOBILE (360px - 479px)
   ========================================================================== */
@media (min-width: 360px) and (max-width: 479px) {
    .auth-section {
        padding: 1.75rem 1rem 5.5rem;
    }

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

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

    .trust-signals {
        gap: 1.25rem;
    }

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

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

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

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

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

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

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

    .auth-card {
        padding: 2.25rem 2rem;
        border-radius: 22px;
    }

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

    .auth-card .btn {
        padding: 1rem 1.75rem;
        font-size: 1.0625rem;
    }
}

/* ==========================================================================
   RESPONSIVE - TABLET (768px - 1023px)
   ========================================================================== */
@media (min-width: 768px) {
    .auth-section {
        padding: 3rem 2rem 6.5rem;
    }

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

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

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

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

    .form-group {
        margin-bottom: 1.5rem;
    }

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

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

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

    .auth-card .btn {
        padding: 1.0625rem 2rem;
        border-radius: 14px;
    }

    .auth-divider {
        margin: 1.75rem 0;
    }

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

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

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

/* ==========================================================================
   RESPONSIVE - DESKTOP (1024px+)
   ========================================================================== */
@media (min-width: 1024px) {
    .auth-section {
        padding: 4rem 3rem 7rem;
        min-height: calc(100vh - 250px);
    }

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

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

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

    .trust-signals {
        gap: 3rem;
    }

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

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

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

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

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

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

/* ==========================================================================
   RESPONSIVE - EXTRA LARGE (1536px+)
   ========================================================================== */
@media (min-width: 1536px) {
    .auth-container {
        max-width: 540px;
    }
}
