/**
 * DARK BEE - Front-end CSS para Auth (Login/Registro)
 */

/* ============================================================================
   VARIABLES
   ============================================================================ */

:root {
    --gold: #D4AF37;
    --gold-light: #F4D03F;
    --dark: #0a0a0a;
    --dark-card: #1a1a1a;
    --text-white: #ffffff;
    --text-light: #cccccc;
    --text-gray: #888888;
    --shadow-gold: 0 10px 40px rgba(212, 175, 55, 0.3);
    --transition-smooth: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* ============================================================================
   PARTICLE CANVAS
   ============================================================================ */

body {
    margin: 0;
    padding: 0;
    background: var(--dark);
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-white);
    overflow-x: hidden;
}

#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
}

/* ============================================================================
   AUTH CONTAINER
   ============================================================================ */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: var(--dark);
    position: relative;
}

.auth-container {
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 2;
}

.auth-card {
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.auth-logo {
    text-align: center;
    margin-bottom: 35px;
}

.auth-logo img {
    height: 80px;
    margin: 0 auto 15px;
}

.auth-logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
}

.auth-title {
    text-align: center;
    margin-bottom: 30px;
}

.auth-title h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.auth-title p {
    color: var(--text-gray);
    font-size: 14px;
}

/* ============================================================================
   AUTH FORM
   ============================================================================ */

.auth-form .form-group {
    margin-bottom: 25px;
}

.auth-form label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 10px;
}

.auth-form input {
    width: 100%;
    padding: 16px 20px;
    background: var(--dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-white);
    font-family: inherit;
    font-size: 15px;
    transition: all 0.3s;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.auth-form input::placeholder {
    color: var(--text-gray);
}

.input-icon {
    position: relative;
}

.input-icon > i:first-child {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
    z-index: 2;
    pointer-events: none;
}

.input-icon input {
    padding-left: 50px;
    padding-right: 50px;
}

.input-icon .toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-gray);
    cursor: pointer;
    transition: color 0.3s;
    z-index: 2;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
}

.input-icon .toggle-password:hover {
    color: var(--gold);
}

/* ============================================================================
   FORM OPTIONS
   ============================================================================ */

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--gold);
    cursor: pointer;
}

.remember-me span {
    font-size: 14px;
    color: var(--text-gray);
}

.forgot-link {
    font-size: 14px;
    color: var(--gold);
}

.forgot-link:hover {
    text-decoration: underline;
}

/* ============================================================================
   AUTH BUTTONS
   ============================================================================ */

.auth-btn {
    width: 100%;
    padding: 18px;
    background: var(--gold);
    color: var(--dark);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.auth-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.auth-btn.loading {
    pointer-events: none;
}

.auth-btn .spinner-small {
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: var(--dark);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ============================================================================
   AUTH FOOTER
   ============================================================================ */

.auth-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.auth-footer p {
    font-size: 14px;
    color: var(--text-gray);
}

.auth-footer a {
    color: var(--gold);
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ============================================================================
   SOCIAL AUTH
   ============================================================================ */

.auth-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 30px 0;
}

.auth-divider span {
    font-size: 13px;
    color: var(--text-gray);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

/* ============================================================================
   BACK LINK
   ============================================================================ */

.back-to-home {
    text-align: center;
    margin-top: 25px;
}

.back-to-home a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-gray);
}

.back-to-home a:hover {
    color: var(--gold);
}

/* ============================================================================
   VALIDATION STATES
   ============================================================================ */

.form-group.error input {
    border-color: #ef4444;
}

.form-group.success input {
    border-color: #22c55e;
}

.error-message {
    font-size: 12px;
    color: #ef4444;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 480px) {
    .auth-card {
        padding: 40px 25px;
    }

    .auth-title h2 {
        font-size: 1.5rem;
    }

    .form-options {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}