:root {
    --primary-color: #0f172a;
    --primary-hover: #4338ca;
    --text-main: #111827;
    --text-muted: #6b7280;
    --bg-auth: #ffffff;
    --border-color: #e5e7eb;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.auth-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Panel informativo (Izquierda) */
.auth-side-info {
    flex: 1;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
}

@media (max-width: 900px) {
    .auth-side-info { display: none; }
}

.info-content h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.info-content h2 span { color: #818cf8; }
.info-content p { font-size: 1.1rem; color: #94a3b8; margin-bottom: 2rem; }

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
    color: #e2e8f0;
}

/* Panel Formulario (Derecha) */
.auth-side-form {
    flex: 1;
    background: var(--bg-auth);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.form-container {
    width: 100%;
    max-width: 400px;
}

header { margin-bottom: 2rem; }
header h1 { font-size: 1.8rem; color: var(--text-main); }
header p { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.5rem; }
header a { color: var(--primary-color); text-decoration: none; font-weight: 600; }

.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; font-weight: 500; font-size: 0.9rem; }

.input-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon i {
    position: absolute;
    left: 12px;
    width: 18px;
    color: var(--text-muted);
}

.input-icon input {
    width: 100%;
    padding: 0.8rem 0.8rem 0.8rem 2.5rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: 0.2s;
}

.input-icon input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.form-terms {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

/* Botones y Sociales */
.btn-block {
    width: 100%;
    padding: 0.8rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn-block:hover { background: var(--primary-hover); }

.divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--border-color);
    z-index: 1;
}

.divider span {
    background: white;
    padding: 0 10px;
    color: var(--text-muted);
    font-size: 0.8rem;
    position: relative;
    z-index: 2;
}

.btn-google {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0.8rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
}

/* Añadir al archivo style-auth.css existente */

.label-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.forgot-link {
    font-size: 0.8rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
}

.form-options {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    cursor: pointer;
}

/* Toque de diseño: Animación simple al entrar */
.form-container {
    animation: fadeIn 0.5s ease-out;
}

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

.auth-message {
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.3s ease;
}

.auth-message.error {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.auth-message.success {
    background-color: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}