body {
    min-height: 100vh;
    margin: 0;
    font-family: Arial, sans-serif;
    background: linear-gradient(90deg, #1565c0 0%, #90caf9 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.logo {
    width: 180px;   
    display: block;
    margin: 0 auto;
    margin-bottom: -30px;
    position: relative;
    z-index: 2;
}

.login-container {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(21, 101, 192, 0.18);
    max-width: 480px;
    width: 100%;
    padding: 56px 40px 40px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 0;
}

h2 {
    text-align: center;
    margin-bottom: 28px;
    font-size: 2.4rem;
    font-weight: bold;
}

label {
    display: block;
    margin-bottom: 6px;
    font-size: 1.15rem;
    color: #444;
    text-align: left;
    width: 100%;
}

input[type="text"],
input[type="password"],
input[type="email"] {
    width: 100%;
    padding: 18px 20px;
    margin-bottom: 18px;
    border: none;
    border-radius: 16px;
    background: #f3f6fa;
    box-shadow: 0 2px 6px rgba(21, 101, 192, 0.07);
    font-size: 1.15rem;
    outline: none;
    transition: box-shadow 0.2s;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus {
    box-shadow: 0 0 0 2px #1976d2;
}

.password-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 18px;
}

.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
    padding-right: 38px;
}

.toggle-password {
    position: absolute;
    right: -35px;
    top: 18px;
    cursor: pointer;
    height: 28px;
    width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password img {
    width: 28px;
    height: 28px;
    opacity: 0.6;
}

.btn-ingresar {
    width: 100%;
    padding: 16px 0;
    background: #1565c0;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-ingresar:hover {
    background: #0d47a1;
}

.btn-recuperar {
    width: 100%;
    padding: 16px 0;
    background: #e3eaf2;
    color: #7b8a99;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 0;
    transition: background 0.2s, color 0.2s;
}

.btn-recuperar:hover {
    background: #cfd8dc;
    color: #333;
}

.mensaje-error {
    color: #c62828;
    background: #ffeaea;
    border-radius: 8px;
    padding: 10px 0;
    width: 100%;
    text-align: center;
    margin-bottom: 18px;
    font-weight: bold;
}

.mensaje-info {
    color: #1565c0;
    background: #e3eaf2;
    border-radius: 8px;
    padding: 10px 0;
    width: 100%;
    text-align: center;
    margin-bottom: 18px;
    font-weight: bold;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Large Screens (1200px+) */
@media (min-width: 1200px) {
    body {
        font-size: 22px;
    }
    
    .logo {
        width: 200px;
        margin-bottom: -35px;
    }
    
    .login-container {
        max-width: 520px;
        padding: 60px 45px 45px 45px;
    }
    
    h2 {
        font-size: 2.6rem;
        margin-bottom: 32px;
    }
    
    label {
        font-size: 1.2rem;
    }
    
    input[type="text"],
    input[type="password"],
    input[type="email"] {
        padding: 20px 22px;
        font-size: 1.2rem;
        margin-bottom: 20px;
    }
    
    .btn-ingresar,
    .btn-recuperar {
        padding: 18px 0;
        font-size: 1.3rem;
    }
}

/* Medium Screens (768px - 1199px) - Tablets */
@media (max-width: 1199px) and (min-width: 768px) {
    body {
        font-size: 18px;
        padding: 20px;
    }
    
    .logo {
        width: 160px;
        margin-bottom: -25px;
    }
    
    .login-container {
        max-width: 450px;
        padding: 50px 35px 35px 35px;
    }
    
    h2 {
        font-size: 2.2rem;
        margin-bottom: 25px;
    }
    
    label {
        font-size: 1.1rem;
    }
    
    input[type="text"],
    input[type="password"],
    input[type="email"] {
        padding: 16px 18px;
        font-size: 1.1rem;
        margin-bottom: 16px;
    }
    
    .password-wrapper input[type="password"],
    .password-wrapper input[type="text"] {
        padding-right: 35px;
    }
    
    .toggle-password {
        right: -32px;
        top: 16px;
    }
    
    .toggle-password img {
        width: 26px;
        height: 26px;
    }
    
    .btn-ingresar,
    .btn-recuperar {
        padding: 14px 0;
        font-size: 1.15rem;
        margin-bottom: 14px;
    }
}

/* Small Screens (576px - 767px) - Large Mobile */
@media (max-width: 767px) and (min-width: 576px) {
    body {
        font-size: 16px;
        padding: 15px;
        min-height: 100vh;
    }
    
    .logo {
        width: 140px;
        margin-bottom: -20px;
    }
    
    .login-container {
        max-width: 100%;
        width: 90%;
        padding: 45px 25px 25px 25px;
        border-radius: 20px;
    }
    
    h2 {
        font-size: 1.9rem;
        margin-bottom: 20px;
    }
    
    label {
        font-size: 1rem;
        margin-bottom: 4px;
    }
    
    input[type="text"],
    input[type="password"],
    input[type="email"] {
        padding: 14px 16px;
        font-size: 1rem;
        margin-bottom: 14px;
        border-radius: 12px;
    }
    
    .password-wrapper input[type="password"],
    .password-wrapper input[type="text"] {
        padding-right: 32px;
    }
    
    .toggle-password {
        right: -28px;
        top: 14px;
    }
    
    .toggle-password img {
        width: 24px;
        height: 24px;
    }
    
    .btn-ingresar,
    .btn-recuperar {
        padding: 12px 0;
        font-size: 1.05rem;
        margin-bottom: 12px;
    }
    
    .mensaje-error,
    .mensaje-info {
        padding: 8px 0;
        margin-bottom: 14px;
        font-size: 0.95rem;
    }
}

/* Extra Small Screens (320px - 575px) - Mobile */
@media (max-width: 575px) {
    body {
        font-size: 14px;
        padding: 10px;
        min-height: 100vh;
    }
    
    .logo {
        width: 120px;
        margin-bottom: -15px;
    }
    
    .login-container {
        max-width: 100%;
        width: 95%;
        padding: 35px 20px 20px 20px;
        border-radius: 16px;
    }
    
    h2 {
        font-size: 1.6rem;
        margin-bottom: 18px;
    }
    
    label {
        font-size: 0.9rem;
        margin-bottom: 3px;
    }
    
    input[type="text"],
    input[type="password"],
    input[type="email"] {
        padding: 12px 14px;
        font-size: 0.9rem;
        margin-bottom: 12px;
        border-radius: 10px;
    }
    
    .password-wrapper {
        margin-bottom: 12px;
    }
    
    .password-wrapper input[type="password"],
    .password-wrapper input[type="text"] {
        padding-right: 28px;
    }
    
    .toggle-password {
        right: -24px;
        top: 12px;
    }
    
    .toggle-password img {
        width: 20px;
        height: 20px;
    }
    
    .btn-ingresar,
    .btn-recuperar {
        padding: 10px 0;
        font-size: 0.95rem;
        margin-bottom: 10px;
    }
    
    .mensaje-error,
    .mensaje-info {
        padding: 6px 0;
        margin-bottom: 12px;
        font-size: 0.85rem;
    }
}

/* Ultra Small Screens (below 320px) */
@media (max-width: 319px) {
    body {
        font-size: 13px;
        padding: 5px;
    }
    
    .logo {
        width: 100px;
        margin-bottom: -10px;
    }
    
    .login-container {
        width: 98%;
        padding: 25px 15px 15px 15px;
        border-radius: 12px;
    }
    
    h2 {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }
    
    label {
        font-size: 0.8rem;
        margin-bottom: 2px;
    }
    
    input[type="text"],
    input[type="password"],
    input[type="email"] {
        padding: 10px 12px;
        font-size: 0.8rem;
        margin-bottom: 10px;
        border-radius: 8px;
    }
    
    .password-wrapper {
        margin-bottom: 10px;
    }
    
    .password-wrapper input[type="password"],
    .password-wrapper input[type="text"] {
        padding-right: 25px;
    }
    
    .toggle-password {
        right: -20px;
        top: 10px;
    }
    
    .toggle-password img {
        width: 18px;
        height: 18px;
    }
    
    .btn-ingresar,
    .btn-recuperar {
        padding: 8px 0;
        font-size: 0.85rem;
        margin-bottom: 8px;
    }
    
    .mensaje-error,
    .mensaje-info {
        padding: 5px 0;
        margin-bottom: 10px;
        font-size: 0.75rem;
    }
}