﻿/* CSS para Login - Estilo Caja del Seguro Social */
:root {
    --primary-blue: #036112;
    --primary-blue-dark: #0e6803;
    --white: #FFFFFF;
    --gray-light: #e8e8e8;
    --gray-medium: #999999;
    --text-dark: #333333;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    position: relative;
    background-image: url('../fondo.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(8px);
    background: rgba(100, 150, 200, 0.3);
    z-index: 0;
}

.login-container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 1;
    overflow: hidden;
}

.login-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.main-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--white);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
    letter-spacing: 2px;
    margin: 0;
}

.login-box {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 2rem 1.5rem;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 10;
    text-align: center;
}

.logo {
    width: 100px;
    height: 100px;
}

.login-divider {
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--primary-blue), transparent);
    margin: 1rem 0;
}

.login-subtitle {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.login-panel {
    background: var(--white);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.panel-header {
    background: var(--primary-blue);
    color: var(--white);
    padding: 0.7rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
}

.login-form {
    padding: 1.25rem 1rem 1rem;
}

.form-group {
    margin-bottom: 0.85rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 1px solid var(--gray-light);
    border-radius: 4px;
}

.input-wrapper:focus-within {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(0, 86, 163, 0.1);
}

.input-icon {
    position: absolute;
    left: 1rem;
    color: var(--gray-medium);
    pointer-events: none;
    z-index: 2;
}

.form-input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 3rem;
    font-family: var(--font-family);
    font-size: 0.95rem;
    color: var(--text-dark);
    background: transparent;
    border: none;
    outline: none;
}

.form-input::placeholder {
    color: var(--gray-medium);
}

.toggle-password {
    position: absolute;
    right: 0.75rem;
    background: none;
    border: none;
    color: var(--gray-medium);
    cursor: pointer;
    padding: 0.5rem;
    z-index: 2;
}

.toggle-password:hover {
    color: var(--primary-blue);
}

.btn-login {
    width: 100%;
    padding: 0.8rem 2rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--white);
    background: var(--primary-blue);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 0.75rem;
    transition: background 0.3s ease;
}

.btn-login:hover {
    background: var(--primary-blue-dark);
}

.login-footer {
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--gray-light);
}

.login-footer p {
    font-size: 0.8rem;
    color: var(--gray-medium);
}

.login-footer a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* Responsive design */
@media (max-width: 768px) {
    .login-container {
        padding: 0.75rem;
    }
    
    .login-header {
        margin-bottom: 1rem;
    }
    
    .login-box {
        max-width: 95%;
        padding: 1.5rem 1.25rem;
    }
    
    .logo {
        width: 80px;
        height: 80px;
    }
}

@media (max-height: 700px) {
    .login-header {
        margin-bottom: 0.75rem;
    }
    
    .login-box {
        padding: 1.25rem 1rem;
    }
    
    .logo {
        width: 70px;
        height: 70px;
    }
    
    .login-divider {
        margin: 0.6rem 0;
    }
    
    .login-subtitle {
        margin-bottom: 0.75rem;
    }
}
