/* style.css - Medra Sistema Integral (Versión Corporativa) */

:root {
    /* Paleta Deep Slate & Blue */
    --primary: #0f172a;       /* Slate 900 - Color principal */
    --accent: #2563eb;        /* Blue 600 - Acción y foco */
    --accent-dark: #1d4ed8;
    --text-main: #1e293b;     /* Slate 800 */
    --text-muted: #64748b;    /* Slate 500 */
    --bg-app: #f8fafc;        /* Slate 50 - Fondo limpio */
    --white: #ffffff;
    --border: #e2e8f0;        /* Slate 200 */
    --error: #e11d48;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    /* Degradado sutil para mayor profundidad */
    background: radial-gradient(circle at top left, #f1f5f9, #e2e8f0);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: var(--text-main);
    line-height: 1.5;
}

.container {
    padding: 20px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.login-card {
    background: var(--white);
    width: 100%;
    max-width: 400px;
    padding: 3.5rem 2.5rem;
    border-radius: 20px;
    /* Sombra multi-capa estilo Enterprise */
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.04), 
                0 8px 10px -6px rgba(0, 0, 0, 0.04),
                0 0 1px rgba(0,0,0,0.1);
}

/* Header & Logo */
.header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.logo-box {
    background: var(--primary);
    color: white;
    width: 48px;
    height: 48px;
    margin: 0 auto 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.2);
}

.header h1 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.header h1 span {
    display: block;
    font-weight: 400;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
    text-transform: none;
    letter-spacing: 0;
}

.header p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

/* Formulario y Campos */
.field {
    margin-bottom: 1.25rem;
}

label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

input {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: #f8fafc;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 0.95rem;
    color: var(--text-main);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

input:focus {
    outline: none;
    background-color: var(--white);
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* Estilo para el link debajo de la contraseña */
.field-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.6rem;
}

.link {
    font-size: 0.75rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.link:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}

/* Botón de Acceso */
.btn-login {
    width: 100%;
    background: var(--primary);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-login:hover {
    background: #1e293b;
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

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

/* Mensajes de Error */
#error-msg {
    background-color: #fff1f2;
    border: 1px solid #ffe4e6;
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    margin-top: 2.5rem;
    text-align: center;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
}

.footer p {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}