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

body {
    min-height: 100vh;
    background: #000; /* Negro total */
    color: #f5f5f5;   /* Blanco suave */
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ------------- CARD ------------- */
.login-box {
    width: 100%;
    max-width: 380px;
    background: #050505; /* Casi negro */
    padding: 32px 28px 26px;
    border-radius: 18px;
    border: 1px solid #262626; /* Gris muy oscuro */
    box-shadow: 0 0 35px rgba(0, 0, 0, 0.75);
    animation: fadeIn 0.3s ease-out;
}

.login-box h2 {
    font-size: 20px;
    text-align: center;
    margin-bottom: 22px;
    letter-spacing: 0.04em;
    color: #ffffff;
}

/* ------------- FORM ------------- */
label {
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
    color: #e5e5e5;
}

input[type="email"],
input[type="password"],
input[type="text"] {
    width: 100%;
    padding: 10px 11px;
    margin-bottom: 16px;
    border-radius: 10px;
    border: 1px solid #333;
    background: #000;
    color: #fafafa;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus {
    outline: none;
    border-color: #fafafa;
    box-shadow: 0 0 0 1px #fafafa;
}

/* ------------- BUTTON ------------- */
button {
    width: 100%;
    padding: 11px 12px;
    margin-top: 4px;
    border-radius: 10px;
    border: 1px solid #f5f5f5;
    background: #111;
    color: #f5f5f5;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

button:hover {
    background: #f5f5f5;
    color: #000;
}

/* ------------- ERROR ------------- */
.error {
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid rgba(248, 113, 113, 0.5);
    color: #fee2e2;
    padding: 9px 11px;
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 12px;
}

/* ------------- LANG SWITCH ------------- */
.lang-switch {
    margin-top: 14px;
    text-align: center;
    font-size: 12px;
}

.lang-switch a {
    color: #f5f5f5;
    text-decoration: none;
    margin: 0 2px;
}

.lang-switch a:hover {
    text-decoration: underline;
}

/* ------------- ANIM ------------- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
