/* css/login.css */
:root {
    --primary-color: #2196F3;
    --dark-bg: #0a1929;
    --card-bg: #132f4c;
    --card-light: #1e4976;
    --text-light: #b2bac2;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #0a1929;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 440px;
}

.login-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 48px 40px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-color);
    border-radius: 16px 16px 0 0;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: var(--primary-color);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 8px 24px rgba(33, 150, 243, 0.3),
        inset 0 -2px 8px rgba(0, 0, 0, 0.2);
}

.login-icon svg {
    width: 44px;
    height: 44px;
    fill: var(--white);
}

.login-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.login-header p {
    color: var(--text-light);
    font-size: 15px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--white);
    font-weight: 500;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    background: var(--card-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--white);
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(30, 73, 118, 0.8);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.form-group input::placeholder {
    color: rgba(178, 186, 194, 0.5);
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
    box-shadow: 0 4px 16px rgba(33, 150, 243, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.4);
    background: #1976D2;
}

.btn-login:active {
    transform: translateY(0);
}

.login-footer {
    margin-top: 32px;
    text-align: center;
    color: var(--text-light);
    font-size: 13px;
}

/* Mensaje de error */
.error-message {
    background: #d32f2f;
    color: var(--white);
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 24px;
    text-align: center;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

/* Responsive */
@media (max-width: 480px) {
    .login-card {
        padding: 36px 24px;
    }
    
    .login-header h1 {
        font-size: 28px;
    }
    
    .login-icon {
        width: 70px;
        height: 70px;
    }
    
    .login-icon svg {
        width: 38px;
        height: 38px;
    }
}

/* Estilo para link de recuperación de contraseña */
.forgot-password {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.forgot-password a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.forgot-password a:hover {
    color: #E3F2FD;
    text-decoration: underline;
}
