/* /buscador/v2/css/login.css
 * Estilos para login.php y pantalla de autenticacion
 */

:root {
    --azul-gedyt: #0047ba;
    --azul-oscuro: #002d7a;
    --celeste-gedyt: #45c4f0;
    --celeste-claro: #7dd8f7;
    --blanco: #ffffff;
    --texto-oscuro: #1a2b4a;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #0a1628 0%, #0d2847 50%, #0a1628 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 8px;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(69, 196, 240, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 71, 186, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
}

.login-card {
    background: linear-gradient(165deg, var(--azul-gedyt) 0%, var(--azul-oscuro) 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.top-accent {
    height: 4px;
    background: linear-gradient(90deg, var(--celeste-gedyt), var(--celeste-claro), var(--celeste-gedyt));
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.card-content {
    padding: 18px 24px 16px;
}

/* Logo */
.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-container {
    background: var(--blanco);
    padding: 6px 10px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.logo-container img {
    height: 28px;
    display: block;
}

.logo-text {
    color: var(--blanco);
}

.logo-text .brand {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.7;
}

.logo-text .name {
    font-size: 15px;
    font-weight: 600;
}

/* Header */
.header-section {
    margin-bottom: 10px;
    color: var(--blanco);
}

.header-section h1 {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 4px;
}

.header-section h1 span {
    color: var(--celeste-gedyt);
}

.header-section p {
    font-size: 12px;
    line-height: 1.4;
    opacity: 0.85;
}

/* Form */
.form-container {
    background: rgba(0, 0, 0, 0.18);
    border-radius: 12px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.form-title {
    color: var(--blanco);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-title svg {
    width: 18px;
    height: 18px;
    opacity: 0.9;
}

.input-group {
    margin-bottom: 10px;
}

.input-group label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 10px;
    font-weight: 600;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 12px;
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
    transition: color 0.3s;
}

.input-icon svg {
    width: 16px;
    height: 16px;
}

.form-input {
    width: 100%;
    padding: 10px 10px 10px 36px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    color: var(--blanco);
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s;
    outline: none;
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-input:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--celeste-gedyt);
    box-shadow: 0 0 0 3px rgba(69, 196, 240, 0.15);
}

.input-wrapper:focus-within .input-icon {
    color: var(--celeste-gedyt);
}

/* Toggle password */
.toggle-password {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 4px;
    display: flex;
    transition: color 0.3s;
}

.toggle-password:hover {
    color: var(--celeste-gedyt);
}

.toggle-password svg {
    width: 18px;
    height: 18px;
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 11px 20px;
    background: linear-gradient(135deg, var(--celeste-gedyt) 0%, var(--celeste-claro) 100%);
    border: none;
    border-radius: 10px;
    color: var(--texto-oscuro);
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 6px;
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(69, 196, 240, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    width: 100%;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: var(--blanco);
    font-size: 12px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.forgot-link {
    display: block;
    text-align: center;
    margin-top: 10px;
    color: var(--celeste-gedyt);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s;
}

.forgot-link:hover {
    color: var(--celeste-claro);
    text-decoration: underline;
}

/* Messages */
.message {
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 12px;
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.message.error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.message.success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
}

.message svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.reset-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.form-hidden {
    display: none;
}

/* Footer */
.footer-info {
    text-align: center;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-info p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.footer-info svg {
    width: 12px;
    height: 12px;
}

/* Loading */
.btn-primary.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-primary.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: var(--texto-oscuro);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: inline-block;
    margin-left: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive - Mobile */
@media (max-width: 480px) {
    .container {
        max-width: 100%;
    }
    
    .card-content {
        padding: 16px 20px 14px;
    }

    .logo-section {
        gap: 10px;
    }

    .logo-container img {
        height: 26px;
    }

    .logo-text .name {
        font-size: 14px;
    }

    .header-section h1 {
        font-size: 17px;
    }

    .form-container {
        padding: 12px 14px;
    }

    .form-input {
        font-size: 16px; /* Previene zoom en iOS */
    }
}

/* Pantallas muy pequenas */
@media (max-height: 650px) {
    .card-content {
        padding: 14px 20px 12px;
    }
    
    .logo-section {
        margin-bottom: 8px;
        padding-bottom: 8px;
    }
    
    .header-section {
        margin-bottom: 8px;
    }
    
    .header-section p {
        display: none;
    }
    
    .form-container {
        padding: 12px 14px;
    }
    
    .input-group {
        margin-bottom: 8px;
    }
    
    .footer-info {
        margin-top: 8px;
        padding-top: 8px;
    }
}