/**
 * Portal Único - Login Page Styles
 * Estilos corporativos para la página de inicio de sesión
 */

/* Variables CSS */
:root {
    --primary-color: #304E88;
    --primary-hover: #3d5fa3;
    --secondary-color: #C8E1EF;
    --text-secondary: #7A7A7A;
    --error-color: #c33;
    --error-bg: #fff5f5;
    --error-border: #fcc;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body & Background */
body {
    font-family: 'Optima', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: var(--secondary-color);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* Decorative background arcs */
body::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 300px;
    border: 40px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-bottom: none;
    transform: rotate(-15deg);
}

body::after {
    content: '';
    position: absolute;
    bottom: -200px;
    left: -200px;
    width: 600px;
    height: 300px;
    border: 40px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: none;
    transform: rotate(-15deg);
}

/* Login Container */
.login-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(48, 78, 136, 0.15);
    padding: 50px 45px;
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
}

/* Logo Section */
.logo {
    text-align: center;
    margin-bottom: 40px;
}

.logo-image {
    width: 280px;
    height: auto;
    margin-bottom: 20px;
}

.logo p {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 300;
}

/* Form Groups */
.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 14px;
}

/* Input Fields */
input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--secondary-color);
    border-radius: 6px;
    font-size: 15px;
    font-family: 'Optima', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #333;
}

input[type="text"]:focus,
input[type="password"]:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 3px rgba(48, 78, 136, 0.1);
}

/* Button */
.btn {
    width: 100%;
    padding: 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Optima', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    letter-spacing: 0.3px;
}

.btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(48, 78, 136, 0.25);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Error Message */
.error {
    background: var(--error-bg);
    color: var(--error-color);
    padding: 14px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid var(--error-border);
    font-size: 14px;
}

/* Demo Info */
.demo-info {
    margin-top: 30px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid var(--secondary-color);
}

.demo-info h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
}

.demo-info p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 4px;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 30px;
    color: var(--text-secondary);
    font-size: 12px;
}

/* Security Badge */
.security-badge {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

.security-badge small {
    color: var(--text-secondary);
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.lock-icon {
    width: 12px;
    height: 12px;
}

/* Responsive */
@media (max-width: 480px) {
    .login-container {
        padding: 40px 25px;
    }

    .logo h1 {
        font-size: 28px;
    }
}
