* {
    box-sizing: border-box;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    margin: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #2563eb, #1e40af);
}

/* Centrado total */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* Tarjeta */
.login-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Títulos */
.login-card h1 {
    margin: 0;
    text-align: center;
    font-size: 1.8rem;
}

.login-card p {
    text-align: center;
    color: #555;
    margin-bottom: 1.5rem;
}

/* Inputs */
.login-card input {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    border-radius: 10px;
    border: 1px solid #ccc;
    margin-bottom: 1rem;
    transition: border 0.2s, box-shadow 0.2s;
}

.login-card input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

/* Botón */
.login-card button {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    border-radius: 10px;
    border: none;
    background: #2563eb;
    color: white;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.login-card button:hover {
    background: #1e40af;
}

.login-card button:active {
    transform: scale(0.98);
}

.logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1.2rem;
}

.logo img {
    display: block;
    max-width: 60vw;   /* depende del ancho de la pantalla */
    max-height: 25vh;  /* depende del alto de la pantalla */
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Responsive para pantallas grandes */
@media (min-width: 768px) {
    .logo img {
        max-width: 180px;
        max-height: 180px;
    }
}