:root {
    --primary-gold: #ffc800;
    --secondary-gold: #e5a900;
    --dark-bg: #0d0f12;
    --card-bg: rgba(22, 26, 33, 0.75);
    --border-glow: rgba(255, 200, 0, 0.3);
    --input-bg: rgba(255, 255, 255, 0.05);
    --text-color: #f1f5f9;
    --text-muted: #94a3b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--dark-bg);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(255, 200, 0, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 150, 255, 0.08) 0%, transparent 40%),
        linear-gradient(to bottom, rgba(13, 15, 18, 0.85), rgba(13, 15, 18, 0.95)),
        url('https://images.unsplash.com/photo-1534438327276-14e5300c3a48?q=80&w=1920&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: var(--text-color);
}

/* Contenedor Principal */
.login-wrapper {
    width: 100%;
    max-width: 900px;
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6),
                0 0 30px rgba(255, 200, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 30px;
    position: relative;
}

/* Branding / Logo Header */
.brand-header {
    text-align: center;
    margin-bottom: 30px;
}

.brand-logo {
    max-width: 280px;
    height: auto;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.5));
    transition: transform 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.03);
}

/* Mensajes de Alerta */
.alert {
    width: 100%;
    max-width: 650px;
    padding: 12px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    text-align: center;
    font-weight: 500;
}

.alert-error {
    background-color: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #fca5a5;
}

.alert-success {
    background-color: rgba(34, 197, 94, 0.2);
    border: 1px solid rgba(34, 197, 94, 0.5);
    color: #86efac;
}

/* Layout Grid para Pantallas Grandes */
.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    width: 100%;
    max-width: 800px;
    align-items: center;
}

@media (max-width: 768px) {
    .auth-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Sección Izquierda: Bienvenida / Info */
.welcome-panel {
    text-align: center;
    padding: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

@media (max-width: 768px) {
    .welcome-panel {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 30px;
    }
}

.welcome-panel h2 {
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.welcome-panel p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.badge-features {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.badge-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: 12px;
    font-size: 1.2rem;
    color: var(--primary-gold);
    transition: all 0.3s ease;
}

.badge-item:hover {
    border-color: var(--primary-gold);
    transform: translateY(-3px);
}

/* Tabs de Selección (Iniciar Sesión / Registrarse) */
.tab-group {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 30px;
    padding: 4px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.tab-btn {
    flex: 1;
    padding: 10px 20px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: linear-gradient(135deg, #2a2e37 0%, #1a1d24 100%);
    color: var(--primary-gold);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 200, 0, 0.2);
}

/* Formularios */
.form-content {
    display: none;
}

.form-content.active {
    display: block;
    animation: fadeIn 0.4s ease-in-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.input-group {
    position: relative;
    margin-bottom: 18px;
}

.input-group i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
    transition: color 0.3s ease;
}

.input-field {
    width: 100%;
    padding: 14px 16px 14px 45px;
    background: var(--input-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.input-field::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.input-field:focus {
    border-color: var(--primary-gold);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(255, 200, 0, 0.2);
}

.input-field:focus + i {
    color: var(--primary-gold);
}

.form-options {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.forgot-pass {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-pass:hover {
    color: var(--primary-gold);
}

/* Botón Principal */
.btn-submit {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--primary-gold) 0%, var(--secondary-gold) 100%);
    color: #000000;
    font-size: 0.95rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(255, 200, 0, 0.3);
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 200, 0, 0.5);
    background: linear-gradient(135deg, #ffd000 0%, #f5b300 100%);
}

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

/* Footer */
.footer-links {
    margin-top: 30px;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    margin: 0 8px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--text-color);
}