:root {
    --primary-blue: #1b52a5;
    --primary-blue-hover: #123d7a;
    --accent-color: #00a2ff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-offset: #f8fafc;
    --border-light: #e2e8f0;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: var(--bg-offset);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-card {
    background: #fff;
    width: 100%;
    max-width: 420px;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
}

.auth-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.auth-logo img {
    height: 56px;
    display: inline-block;
}

.auth-logo p {
    margin: .5rem 0 0;
    color: var(--text-muted);
    font-size: .9rem;
}

.auth-card h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 0 .3rem;
    text-align: center;
}

.auth-subtitulo {
    text-align: center;
    color: var(--text-muted);
    font-size: .9rem;
    margin: 0 0 1.5rem;
}

.auth-alerta {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
    padding: .75rem 1rem;
    border-radius: 8px;
    font-size: .85rem;
    margin-bottom: 1.25rem;
}

.auth-alerta.ok {
    background: #dcfce7;
    color: #166534;
    border-color: #86efac;
}

.form-grupo {
    margin-bottom: 1.1rem;
}

.form-grupo label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    margin-bottom: .4rem;
    color: var(--text-main);
}

.form-grupo input {
    width: 100%;
    padding: .7rem .9rem;
    border: 1.5px solid var(--border-light);
    border-radius: 8px;
    font-size: .92rem;
    font-family: inherit;
    color: var(--text-main);
    background: var(--bg-offset);
    outline: none;
    transition: border-color .2s, background .2s;
}

.form-grupo input:focus {
    border-color: var(--primary-blue);
    background: #fff;
}

.form-grupo.con-icono { position: relative; }

.toggle-pass {
    position: absolute;
    right: .6rem;
    top: 2.15rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.05rem;
    color: var(--text-muted);
}

.auth-submit {
    width: 100%;
    background: var(--primary-blue);
    color: #fff;
    border: none;
    padding: .85rem;
    border-radius: 8px;
    font-size: .95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
}

.auth-submit:hover { background: var(--primary-blue-hover); }

.auth-enlace {
    text-align: right;
    margin: -.6rem 0 1.1rem;
}

.auth-enlace a,
.auth-volver a {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: .82rem;
    text-decoration: none;
}

.auth-enlace a:hover,
.auth-volver a:hover { text-decoration: underline; }

.auth-volver {
    text-align: center;
    margin-top: 1.5rem;
}

.auth-volver a { font-weight: 500; color: var(--text-muted); }
