:root {
    --bg-page: #0f1524;
    --bg-sidebar: #151e36;
    --bg-form: #0b1120;
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --input-bg: #1e293b;
    --border-color: #334155;
    --border-focus: #3b82f6;
}

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

body {
    /*background-color: var(--bg-page);*/
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: var(--text-main);
}

/* Contenedor principal de la tarjeta */
.login-card {
    display: flex;
    width: 100%;
    max-width: 950px;
    background-color: var(--bg-form);
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    margin: 20px;
}

/* ----- COLUMNA IZQUIERDA (SIDEBAR) ----- */
.sidebar {
    background-color: var(--bg-sidebar);
    width: 45%;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 40px;
}

.logo-container svg {
    width: 40px;
    height: 40px;
    color: white;
}

.logo-text {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 0.5px;
}

.breadcrumb {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.sidebar-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
}

.sidebar-title span {
    color: var(--primary);
}

.sidebar-desc {
    font-size: 14px;
    color: #cbd5e1;
    margin-bottom: 40px;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 15px;
    font-size: 12px;
    color: #cbd5e1;
    margin-bottom: 50px;
    flex-grow: 1;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}

.feature-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

.sidebar-footer {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-footer svg {
    width: 14px;
    height: 14px;
}

/* ----- COLUMNA DERECHA (FORMULARIO) ----- */
.form-section {
    width: 55%;
    padding: 50px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-header h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-header p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.tabs {
    display: flex;
    background-color: var(--bg-form);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    margin-bottom: 25px;
    overflow: hidden;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn.active {
    background-color: var(--input-bg);
    color: var(--text-main);
}

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

.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

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

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

.form-control {
    width: 100%;
    padding: 14px 40px 14px 40px;
    background-color: var(--bg-form);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-main);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.form-control:focus {
    border-color: var(--border-focus);
}

.form-control::placeholder {
    color: #475569;
}

.input-hint {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 6px;
}

.btn-toggle-pass {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 4px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0 25px 0;
    font-size: 12px;
}

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

.checkbox-container input[type="checkbox"] {
    accent-color: var(--primary);
    width: 14px;
    height: 14px;
}

.forgot-pass {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

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

.btn-submit {
    width: 100%;
    padding: 14px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

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

/* Panel de Usuario de Prueba */
.test-user-box {
    margin-top: 30px;
    padding: 20px;
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    background-color: rgba(30, 41, 59, 0.3);
}

.test-user-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.test-user-title {
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.test-user-action {
    color: var(--primary);
    font-size: 11px;
    text-decoration: none;
    cursor: pointer;
}

.test-user-data {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
}

.data-row {
    display: flex;
}

.data-label {
    width: 80px;
    color: var(--text-muted);
}

.data-value {
    font-weight: 600;
    color: #e2e8f0;
}

/* Footer del formulario */
.form-footer {
    margin-top: 40px;
    font-size: 11px;
    color: var(--text-muted);
}

.form-footer-links {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.form-footer a {
    color: var(--text-muted);
    text-decoration: none;
}

/* Notificación emergente simple */
.alert-message {
    margin-top: 15px;
    padding: 10px;
    background-color: rgba(59, 130, 246, 0.1);
    border-left: 3px solid var(--primary);
    color: #93c5fd;
    font-size: 12px;
    display: none;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 850px) {
    .login-card {
        flex-direction: column;
        margin: 0;
        border-radius: 0;
        min-height: 100vh;
    }
    .sidebar, .form-section {
        width: 100%;
    }
    .sidebar {
        padding: 40px 30px;
    }
    .form-section {
        padding: 40px 30px;
    }
}