/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Fondo blanco con gradiente gris claro */
body {
    min-height: 100vh;
    background: linear-gradient(180deg, #ffffff 0%, #f2f2f2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Contenedor principal */
.login-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Tarjeta elevada */
.login-card {
    background: #ffffff;
    width: 100%;
    max-width: 360px;
    padding: clamp(28px, 5vw, 40px) clamp(26px, 5vw, 45px);
    border-radius: 14px;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/*
.login-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 18px 40px rgba(0, 0, 0, 0.12),
        0 4px 10px rgba(0, 0, 0, 0.08);
}*/

/* Título y subtítulo centrados */
.login-title {
    text-align: center;
    font-size: clamp(20px, 5vw, 24px);
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 8px;
}

.login-subtitle {
    text-align: center;
    font-size: clamp(13px, 4vw, 14px);
    color: #6e6e73;
    margin-bottom: 28px;
}

/* Formulario */
.login-form {
    display: flex;
    flex-direction: column;
}

/* Grupo label + input */
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
}

/* Labels alineados a la izquierda */
.form-group label {
    font-size: clamp(12px, 4vw, 13px);
    color: #1d1d1f;
    margin-bottom: 6px;
}

/* Inputs */
.form-group input {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid #d2d2d7;
    font-size: clamp(14px, 4vw, 15px);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus {
    border-color: #0071e3;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.15);
}

/* Botón centrado */
.btn-login {
    margin-top: 10px;
    width: 100%;
    height: 46px;
    border: none;
    border-radius: 12px;
    background: #0071e3;
    color: #ffffff;
    font-size: clamp(14px, 4vw, 15px);
    font-weight: 500;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.2s ease;
}

/* Hover solo en desktop */
@media (hover: hover) {
    .btn-login:hover {
        background: #0077ed;
        transform: translateY(-1px);
    }
}

.btn-login:active {
    transform: translateY(0);
}

/* Tablets */
@media (min-width: 768px) {
    body {
        padding: 40px;
    }
}

/* Pantallas grandes */
@media (min-width: 1200px) {
    .login-card {
        max-width: 380px;
    }
}


/* Enlace de recuperar contraseña */
.forgot-password {
    text-align: center;
    margin-top: 14px;
}

.forgot-password a {
    font-size: clamp(13px, 4vw, 14px);
    color: #0071e3;
    text-decoration: none;
    transition: color 0.25s ease;
}

@media (hover: hover) {
    .forgot-password a:hover {
        color: #005bb5;
        text-decoration: underline;
    }
}
