/* ==========================================================================
   AUTH PAGES STYLES (Login/Register)
   Davin888 - Cyberpunk Neon Theme
   ========================================================================== */

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

/* Decorative background effects */
.auth-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(ellipse at 30% 20%, rgba(0, 212, 255, 0.08) 0%, transparent 40%),
        radial-gradient(ellipse at 70% 80%, rgba(168, 85, 247, 0.06) 0%, transparent 40%);
    pointer-events: none;
    animation: authBgPulse 15s ease-in-out infinite alternate;
}

@keyframes authBgPulse {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-5%, -5%) scale(1.1);
        opacity: 0.8;
    }
}

.auth-container {
    width: 100%;
    max-width: 460px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* ==========================================================================
   AUTH CARD STYLING
   ========================================================================== */
.auth-card {
    background: rgba(18, 18, 31, 0.9);
    border: 1px solid var(--border-primary);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    box-shadow:
        var(--shadow-lg),
        0 0 40px rgba(0, 212, 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);
}

/* Subtle corner glow */
.auth-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle at top right, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

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

.auth-header h1 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 0;
}

/* ==========================================================================
   AUTH FORM STYLING
   ========================================================================== */
.auth-form {
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

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

.form-label {
    display: block;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
}

.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-input:hover {
    border-color: rgba(0, 212, 255, 0.3);
}

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

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

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

/* ==========================================================================
   BUTTON STYLES
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-full {
    width: 100%;
}

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

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

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

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

.btn-outline:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

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

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

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

/* ==========================================================================
   TRUST SIGNALS STYLING
   ========================================================================== */
.trust-signals {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 0.75rem;
    background: rgba(18, 18, 31, 0.6);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    flex: 1;
    min-width: 90px;
    max-width: 120px;
    text-align: center;
    transition: all var(--transition-normal);
}

.trust-item:hover {
    border-color: var(--border-secondary);
    background: rgba(26, 26, 46, 0.8);
    transform: translateY(-2px);
}

.trust-item svg {
    color: var(--accent-primary);
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.3));
}

.trust-item span {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.3;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

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

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

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

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

    .btn {
        padding: 0.875rem 1rem;
        font-size: 0.9375rem;
    }

    .trust-signals {
        gap: 0.5rem;
    }

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

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

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

/* Small Mobile (360px - 479px) */
@media (min-width: 360px) and (max-width: 479px) {
    .auth-section {
        padding: 2rem 1rem 6.5rem;
    }

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

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

    .trust-item {
        min-width: 95px;
        padding: 0.875rem 0.625rem;
    }
}

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

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

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

    .trust-signals {
        gap: 1rem;
    }

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

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

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

/* Large Mobile / Phablet (576px - 767px) */
@media (min-width: 576px) {
    .auth-container {
        max-width: 480px;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

    .trust-signals {
        gap: 1.25rem;
    }

    .trust-item {
        min-width: 120px;
        max-width: 150px;
        padding: 1.25rem 1rem;
    }
}

/* Large Tablet / Small Desktop (992px - 1023px) */
@media (min-width: 992px) {
    .auth-section {
        padding: 4rem 2rem 6rem;
    }

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

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

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

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

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

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

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

    .trust-item {
        min-width: 130px;
        max-width: 160px;
        padding: 1.5rem 1.25rem;
    }

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

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

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

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

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

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

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

/* ==========================================================================
   FORM VALIDATION STATES
   ========================================================================== */
.form-input.is-valid {
    border-color: #10b981;
}

.form-input.is-invalid {
    border-color: #ef4444;
}

.form-error {
    display: block;
    font-size: 0.8125rem;
    color: #ef4444;
    margin-top: 0.375rem;
}

/* ==========================================================================
   LOADING STATE
   ========================================================================== */
.btn.is-loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn.is-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: btnSpinner 0.8s linear infinite;
}

.btn-primary.is-loading::after {
    border-top-color: var(--bg-primary);
}

@keyframes btnSpinner {
    to {
        transform: rotate(360deg);
    }
}

/* ==========================================================================
   FOCUS VISIBLE STYLES (Accessibility)
   ========================================================================== */
.btn:focus-visible,
.form-input:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}
