* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0e1c5a 0%, #2d2f3b 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-container {
    background: white;
    padding: 48px 40px;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    width: 100%;
    max-width: 440px;
}

.login-container .logo {
    text-align: center;
    margin-bottom: 8px;
    font-size: 22px;
    font-weight: 800;
    color: #0e1c5a;
    letter-spacing: 1px;
}

h1 {
    text-align: center;
    color: #1a1a2e;
    margin-bottom: 8px;
    font-size: 26px;
    font-weight: 700;
}

.subtitulo {
    text-align: center;
    color: #888;
    font-size: 14px;
    margin-bottom: 32px;
}

.input-group {
    margin-bottom: 18px;
}

label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid #dde1e9;
    border-radius: 7px;
    font-size: max(16px, 15px); /* = 16px en todos los navegadores*/
    color: #333;
    background: #fafbfc;
    transition: border-color 0.25s, box-shadow 0.25s;
}

input:focus {
    outline: none;
    border-color: #0e1c5a;
    background: white;
    box-shadow: 0 0 0 3px rgba(14, 28, 90, 0.08);
}

.button {
    text-align: center;
    margin-top: 24px;
}

button {
    background: linear-gradient(135deg, #0e1c5a 0%, #2d2f3b 100%);
    color: white;
    border: none;
    padding: 14px;
    min-height: 48px;
    font-size: max(16px, 15px); /* = 16px en todos los navegadores*/
    border-radius: 7px;
    cursor: pointer;
    width: 100%;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: opacity 0.2s, transform 0.2s;
}

button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 28, 90, 0.3);
}

.mensaje {
    padding: 12px 16px;
    border-radius: 7px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
}

.error {
    background-color: #fff0f0;
    color: #c62828;
    border: 1px solid #f5c6c6;
}

.exito {
    background-color: #f0faf2;
    color: #2e7d32;
    border: 1px solid #b8ddbf;
}

.register-link {
    text-align: center;
    margin-top: 24px;
    color: #0e1c5a;
    text-decoration: none;
    display: block;
    font-size: 14px;
    font-weight: 600;
    transition: opacity 0.2s;
}

.register-link:hover {
    opacity: 0.7;
}

.divisor {
    border: none;
    border-top: 1px solid #eee;
    margin: 24px 0;
}