* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(255, 202, 40, 0.18), transparent 34%),
        linear-gradient(135deg, #f5f5f5, #ececec);
    min-height: 100vh;
    color: #1f2937;
    overflow-x: hidden;
}

/* TOPBAR */
.topbar {
    width: 100%;
    height: 82px;
    background: #c62828;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 18px rgba(0,0,0,0.18);
}

.topbar h1 {
    color: #ffffff;
    font-size: 34px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* CONTENEDOR GENERAL */
.main-login {
    min-height: calc(100vh - 82px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 42px 20px;
}

/* TARJETA LOGIN */
.login-card {
    width: 740px;
    max-width: 95%;
    background: rgba(255,255,255,0.96);
    border-radius: 26px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.18);
    padding: 38px 42px 48px;
    text-align: center;
    border-top: 8px solid #ffca28;
}

/* LOGO */
.logo-container {
    margin-bottom: 22px;
}

.logo {
    width: 205px;
    max-width: 80%;
    height: auto;
    object-fit: contain;
    border: none;
    background: transparent;
}

/* TITULO */
.titulo-login {
    font-size: 34px;
    font-weight: 900;
    color: #c62828;
    margin-bottom: 30px;
    letter-spacing: 1px;
}

/* INPUTS */
.input-group {
    width: 360px;
    height: 50px;
    margin: 0 auto 18px auto;
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
}

.icono {
    width: 56px;
    min-width: 56px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    color: #c62828;
}

.input-group input {
    flex: 1;
    height: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 16px;
    color: #1f2937;
    padding: 0 12px;
}

.input-group:focus-within {
    border-color: #c62828;
    box-shadow: 0 0 0 3px rgba(198,40,40,0.15);
}

.input-group input::placeholder {
    color: #6b7280;
    font-size: 15px;
}

/* MENSAJE ERROR */
.error {
    min-height: 20px;
    margin-top: -4px;
    margin-bottom: 14px;
    color: #c62828;
    font-size: 14px;
    font-weight: bold;
}

/* BOTON */
.btn-login {
    width: 360px;
    height: 52px;
    border: none;
    border-radius: 18px;
    background: linear-gradient(135deg, #ffc107, #ffb300);
    color: #1f2937;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0,0,0,0.16);
    transition: all 0.25s ease;
    letter-spacing: 0.5px;
}

.btn-login:hover {
    background: linear-gradient(135deg, #ffca28, #ffc107);
    transform: translateY(-2px);
}

/* BOTÓN MENÚ */
.btn-menu-link {
    display: inline-block;
    width: 240px;
    text-align: center;
    text-decoration: none;
    padding: 13px 20px;
    border-radius: 14px;
    background: linear-gradient(135deg, #ffc107, #ffb300);
    color: #1f2937;
    font-size: 15px;
    font-weight: 900;
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

.btn-menu-link:hover {
    background: linear-gradient(135deg, #ffca28, #ffc107);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .topbar h1 {
        font-size: 26px;
        text-align: center;
        padding: 0 10px;
    }

    .login-card {
        width: 92%;
        padding: 32px 22px 40px;
    }

    .titulo-login {
        font-size: 28px;
    }
}

@media (max-width: 500px) {
    .topbar {
        height: 76px;
    }

    .topbar h1 {
        font-size: 18px;
        line-height: 1.2;
    }

    .main-login {
        min-height: calc(100vh - 76px);
        padding: 28px 14px;
    }

    .logo {
        width: 160px;
    }

    .titulo-login {
        font-size: 22px;
    }

    .input-group,
    .btn-login {
        width: 100%;
    }
}