:root {
    --bg-color: #0a0a0f;
    --card-color: rgba(15, 15, 20, 0.8);
    --text-color: #ffffff;
    --primary-color: #8b5cf6;
    --secondary-purple: #a78bfa;
    --error-color: #ef4444;
    --success-color: #10b981;
    --border-color: rgba(139, 92, 246, 0.15);
    --purple-glow: rgba(139, 92, 246, 0.3);
    --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
                      radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
}

.auth-container {
    width: 100%;
    max-width: 440px;
    padding: 20px;
}

.auth-card {
    background: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.logo-section {
    text-align: center;
    margin-bottom: 30px;
}

.logo-icon {
    width: 60px;
    height: 60px;
    color: var(--primary-color);
    margin-bottom: 15px;
    filter: drop-shadow(0 0 10px var(--purple-glow));
}

.logo-section h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.logo-section h1 span {
    color: var(--primary-color);
}

.subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.auth-form {
    margin-top: 30px;
}

.auth-form h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--text-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-group small {
    display: block;
    margin-top: 5px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-primary:hover {
    background: var(--secondary-purple);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--purple-glow);
}

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

.toggle-form {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.toggle-form a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.toggle-form a:hover {
    color: var(--secondary-purple);
}

.hidden {
    display: none !important;
}

.message-box {
    margin-top: 20px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
}

.message-box.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--error-color);
}

.message-box.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--success-color);
}

/* Reset Password Result Box */
.reset-result-box {
    background: var(--card-color);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    margin-top: 20px;
}

.reset-result-box.hidden {
    display: none;
}

.reset-result-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.reset-result-box h3 {
    margin: 0 0 10px 0;
    color: var(--text-color);
    font-size: 20px;
}

.reset-result-box p {
    color: #9ca3af;
    font-size: 14px;
    margin: 10px 0;
}

.reset-token-box {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.reset-token-box input {
    flex: 1;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 12px;
    font-family: 'Courier New', monospace;
}

.btn-copy {
    padding: 12px 16px;
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
}

.btn-copy:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px var(--purple-glow);
}

.btn-secondary {
    margin-top: 15px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Estilos para input readonly */
.form-group input[readonly] {
    background: rgba(255, 255, 255, 0.03);
    cursor: not-allowed;
    opacity: 0.7;
}

.form-group input[readonly]:focus {
    border-color: var(--border-color);
    box-shadow: none;
}

@media (max-width: 480px) {
    .auth-card {
        padding: 30px 20px;
    }

    .logo-section h1 {
        font-size: 1.5rem;
    }

    .auth-form h2 {
        font-size: 1.3rem;
    }

    .reset-token-box {
        flex-direction: column;
    }
}

