* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #0d47a1, #1976d2);
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-wrapper {
    width: 100%;
    max-width: 360px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
    overflow: hidden;
    padding: 40px 20px 20px;
    display: flex;
    flex-direction: column; /* apila logo y formulario */
    align-items: center;
}

.login-image {
    width: 120px; /* tamaño del logo */
    margin-bottom: 20px;
}

.login-image img {
    width: 100%;
    height: auto;
    display: block;
}

.login-form {
    width: 100%;
}

.login-form h2 {
    color: #0d47a1;
    text-align: center;
    
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group input {
    width: 100%;
    padding: 12px;
    padding-right: 40px;
    margin-bottom: 15px;
    border: 1px solid #bbb;
    border-radius: 6px;
    font-size: 15px;
}

.btn-toggle-pass {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-80%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.btn-toggle-pass img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


.login-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #bbb;
    border-radius: 6px;
    font-size: 15px;
}

.login-form button[type="submit"] {
    width: 100%;
    padding: 12px;
    background: #1976d2;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.login-form button[type="submit"]:hover {
    background: #1565c0;
}

/* Responsive */
@media (max-width: 400px) {
    .login-wrapper {
        padding: 30px 15px 15px;
    }

    .login-image {
        width: 100px;
        margin-bottom: 0px;
    }
}
