/* login.css - Logo arriba del formulario */

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

.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    z-index: 1;
}

.login-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    padding: 2rem;
}

/* Logo ARRIBA - GRANDE Y VISIBLE */
.logo-container {
    text-align: center;
    margin-bottom: 1rem;
    animation: fadeInDown 0.6s ease-out;
}

.logo-image {
    max-width: 180px;
    width: auto;
    height: auto;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
}

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

.brand-text h1 {
    font-size: 2rem;
    color: white;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.brand-text p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    margin-top: 0.3rem;
}

.login-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.login-header {
    background: white;
    padding: 1.5rem;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.login-header h2 {
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.login-header p {
    color: #718096;
    font-size: 0.85rem;
}

.login-body {
    padding: 1.5rem;
}

.input-group {
    margin-bottom: 1.2rem;
}

.input-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #2d3748;
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: #a0aec0;
}

.input-wrapper input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.8rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    color: #a0aec0;
}

.alert {
    padding: 0.7rem 1rem;
    border-radius: 10px;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
}

.alert-success {
    background: #c6f6d5;
    color: #22543d;
    border-left: 3px solid #48bb78;
}

.alert-error {
    background: #fed7d7;
    color: #742a2a;
    border-left: 3px solid #f56565;
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.8rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.checkbox-label input {
    display: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e0;
    border-radius: 4px;
    margin-right: 0.5rem;
    position: relative;
}

.checkbox-label input:checked + .checkbox-custom {
    background: #667eea;
    border-color: #667eea;
}

.checkbox-label input:checked + .checkbox-custom::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 10px;
}

.forgot-link {
    color: #667eea;
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    margin-bottom: 1.2rem;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(102, 126, 234, 0.4);
}

.login-divider {
    display: flex;
    align-items: center;
    margin: 1.2rem 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.divider-text {
    padding: 0 1rem;
    font-size: 0.7rem;
    color: #a0aec0;
}

.sso-buttons {
    display: flex;
    gap: 1rem;
}

.sso-btn {
    flex: 1;
    padding: 0.7rem;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.sso-btn:hover {
    border-color: #667eea;
    background: #f7fafc;
}

.login-footer {
    text-align: center;
    margin-top: 1.5rem;
}

.footer-links {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.7rem;
}

.footer-links a:hover {
    color: white;
}

.separator {
    color: rgba(255, 255, 255, 0.4);
    margin: 0 0.4rem;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.65rem;
}

.version {
    font-size: 0.6rem;
    margin-top: 0.2rem;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 1rem;
    }
    
    .logo-image {
        max-width: 120px;
    }
    
    .brand-text h1 {
        font-size: 1.5rem;
    }
    
    .sso-buttons {
        flex-direction: column;
    }
}