:root {
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --brand-bg: #0d6efd;
    --input-border: #e5e7eb;
    --input-focus: #3b82f6;
    --text-muted: #6c757d;
}

html, body {
    height: 100%;
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Contenedor max-width para el formulario izquierdo */
.auth-form-wrapper {
    max-width: 380px;
}

/* Inputs con estilo redondeado y limpio como la captura */
.form-control-custom {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--input-border);
    font-size: 0.95rem;
    color: #333;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control-custom:focus {
    border-color: var(--input-focus);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.input-group-custom .form-control-custom {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.btn-toggle-custom {
    background: #fff;
    border: 1px solid var(--input-border);
    border-radius: 0 8px 8px 0;
    padding: 0.75rem 1rem;
}

/* Botón de acción principal */
.btn-primary-custom {
    background-color: var(--primary-color);
    border: none;
    color: #ffffff;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background-color 0.2s ease;
}

.btn-primary-custom:hover {
    background-color: var(--primary-hover);
    color: #ffffff;
}

/* Separador con texto central */
.divider-with-text {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    margin: 1.5rem 0;
}

.divider-with-text::before,
.divider-with-text::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e9ecef;
}

.divider-with-text span {
    padding: 0 0.75rem;
    letter-spacing: 0.5px;
}

/* Lado Derecho: Branding Lateral */
.auth-brand-side {
    background-color: var(--brand-bg);
    background: linear-gradient(135deg, #0d6efd 0%, #0052cc 100%);
}

.branding-img {
    max-height: 120px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0px 4px 10px rgba(0,0,0,0.15));
}

/* Formas Geométricas Traslúcidas de Fondo */
.brand-shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    transform: rotate(45deg);
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 350px;
    height: 350px;
    bottom: -80px;
    left: -80px;
}

.shape-3 {
    width: 250px;
    height: 250px;
    top: 30%;
    left: 10%;
    background: rgba(255, 255, 255, 0.03);
}

/* Transición para los pasos del Login */
.auth-step {
    display: none;
}

.auth-step.active {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

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