:root {
    --syra-red: #e30613;
    --syra-dark-red: #b30000;
    --syra-bg: #121212;
    --syra-card: #181818;
    --syra-input-bg: #222222;
    --syra-text: #ffffff;
    --syra-muted: #888888;
    --border-color: #333333;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--syra-bg);
    color: var(--syra-text);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Layout Split: 2 Columnas */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    width: 100%;
}

.left-panel {
    background-color: var(--syra-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.right-panel {
    background-color: #202020;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}

.red-wedge {
    width: 100%;
    height: 180px;
    background-color: var(--syra-red);
    clip-path: polygon(0 40%, 100% 0, 100% 100%, 0 100%);
}

/* Tarjeta del Formulario */
.card-dark {
    width: 100%;
    max-width: 380px;
    padding: 1rem;
}

.brand-title {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    color: #fff;
}

.brand-title i {
    color: var(--syra-red);
    margin-right: 5px;
}

.card-dark h2 {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 2px;
    line-height: 1;
}

.card-dark .subtitle {
    font-size: 0.75rem;
    color: var(--syra-muted);
    letter-spacing: 1px;
    margin-bottom: 2rem;
}

/* Campos de entrada con icono */
.form-group {
    margin-bottom: 1rem;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon i {
    position: absolute;
    left: 12px;
    color: var(--syra-muted);
    font-size: 0.9rem;
}

.input-with-icon input {
    width: 100%;
    padding: 0.75rem 0.75rem 0.75rem 2.4rem;
    background-color: var(--syra-input-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--syra-text);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s;
}

.input-with-icon input:focus {
    border-color: var(--syra-red);
}

/* Botón Principal */
.btn-syra {
    width: 100%;
    padding: 0.8rem;
    background-color: #d1d1d1;
    color: #111;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background 0.2s;
}

.btn-syra:hover {
    background-color: #ffffff;
}

/* Enlaces del pie del formulario */
.form-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 1.2rem;
    font-size: 0.8rem;
}

.form-footer a {
    color: #4a90e2;
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

.alert-error {
    background-color: rgba(227, 6, 19, 0.2);
    border: 1px solid var(--syra-red);
    color: #ff8888;
    padding: 0.6rem;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

/* ==========================================
   ADAPTACIÓN RESPONSIVE PARA CELULARES
   ================================---------- */
@media (max-width: 768px) {
    .split-layout {
        grid-template-columns: 1fr; /* Pasa de 2 columnas a 1 sola */
    }
    
    .right-panel {
        display: none; /* Oculta el panel decorativo derecho en pantallas chicas para priorizar el contenido */
    }

    .left-panel {
        padding: 1rem; /* Reduce los márgenes externos para aprovechar toda la pantalla del celu */
    }

    .card-dark {
        max-width: 100%; /* La tarjeta ocupa todo el ancho disponible del celular */
        padding: 0.5rem;
    }
}