:root {
    --bg-gradient: linear-gradient(135deg, #0f172a, #1e293b, #334155);
    --glass-bg: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(255, 255, 255, 0.12);
    --accent: #38bdf8;
    --accent-hover: #0ea5e9;
    --text-main: #ffffff;
    --text-dim: #cbd5e1;
    --error-bg: rgba(239, 68, 68, 0.18);
    --error-border: rgba(239, 68, 68, 0.4);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg-gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
}

.login-container {
    width: 100%;
    max-width: 430px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 22px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.logo {
    font-size: 40px;
    text-align: center;
    margin-bottom: 15px;
}

h1 {
    margin: 0 0 10px;
    text-align: center;
    font-size: 28px;
    letter-spacing: -0.5px;
}

.subtitle {
    text-align: center;
    color: var(--text-dim);
    font-size: 14px;
    margin-bottom: 30px;
    line-height: 1.4;
}

/* Alertas de Error */
.error {
    background: var(--error-bg);
    border: 1px solid var(--error-border);
    color: #fecaca;
    padding: 14px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* Formulario */
label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #e2e8f0;
    font-weight: 500;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #475569;
    background: rgba(15, 23, 42, 0.6);
    color: white;
    outline: none;
    margin-bottom: 20px;
    font-size: 16px;
    transition: all 0.2s ease;
}

input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.15);
    background: rgba(15, 23, 42, 0.8);
}

button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    background: var(--accent);
    color: #082f49;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.1s ease, background 0.2s ease;
}

button:hover {
    background: var(--accent-hover);
    color: white;
}

button:active {
    transform: scale(0.98);
}

/* Notas finales */
.hint {
    margin-top: 25px;
    padding: 15px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 13px;
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.hint strong {
    color: #7dd3fc;
}

.footer-note {
    margin-top: 25px;
    text-align: center;
    font-size: 12px;
    color: var(--text-dim);
    opacity: 0.7;
}