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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #4b79a1, #283e51);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* LOGIN BOX */
.login-box {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    width: 360px;
    max-width: 100%;
    text-align: center;
}

/* HEADER DENTRO DEL BOX */
.login-header {
    margin-bottom: 20px;
}

/* LOGO + NOMBRE EN LÍNEA */
.brand-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.brand-inline img {
    width: 40px;
    height: auto;
}

.brand-inline span {
    font-weight: bold;
    font-size: 16px;
    color: #1e293b;
}

/* TÍTULO */
.login-header h2 {
    font-size: 22px;
    color: #111;
}

/* FORM */
.login-box form {
    display: flex;
    flex-direction: column;
}

/* LABELS */
.login-box label {
    text-align: left;
    margin-top: 12px;
    margin-bottom: 5px;
    color: #555;
    font-weight: 500;
    font-size: 14px;
}

/* INPUTS */
.login-box input {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 15px;
    width: 100%;
    transition: border 0.3s ease, box-shadow 0.3s ease;
}

.login-box input:focus {
    outline: none;
    border-color: #2575fc;
    box-shadow: 0 0 5px rgba(37,117,252,0.4);
}

/* BOTÓN */
.login-box button {
    margin-top: 20px;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background-color: #2575fc;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.login-box button:hover {
    background-color: #1a5ed6;
    transform: translateY(-2px);
}

/* ERROR */
.login-box .error {
    color: red;
    margin-top: 10px;
    font-size: 14px;
}

/* REGISTRO */
.login-box .register-link {
    margin-top: 15px;
    font-size: 14px;
    text-align: center;
}

.login-box .register-link a {
    color: #2575fc;
    text-decoration: none;
    font-weight: bold;
}