/* Estilos específicos para la página de login */
*,
*::before,
*::after {
    box-sizing: border-box;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-body);
    background-color: var(--surface-card);
}
.login-container {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--brand-strong) 0%, var(--brand-ink) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="var(--overlay-light)"/></svg>') no-repeat;
    background-size: cover;
    opacity: 0.3;
}

.login-card {
    background: var(--surface-card);
    padding: 4rem 5rem;
    border-radius: 20px;
    box-shadow: 0 25px 60px var(--shadow-md);
    width: 100%;
    max-width: 450px;
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    display: flex;
    gap: 3rem;
    align-items: center;
    justify-content: center;
}

.login-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    height: 95%;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--brand-glow-xs), var(--success-soft));
    z-index: -1;
}

.login-illustration {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1.5rem;
    padding: 2rem;
}

.login-illustration img {
    width: 220px;
    max-width: 100%;
}

.login-illustration h2 {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin: 0;
}

.login-illustration p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

.login-content {
    display: flex;
    flex-direction: column;
}

.login-feedback {
    display: none;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid transparent;
}

.login-feedback.visible {
    display: block;
}

.login-feedback.error {
    background: var(--danger-bg);
    border-color: var(--danger-border);
    color: var(--danger-strong);
}

.login-feedback.success {
    background: var(--success-bg);
    border-color: var(--success-border);
    color: var(--success-strong);
}

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

.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--brand);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--brand-strong) 0%, var(--brand-ink) 100%);
    border-radius: 33px;
}

.login-logo i {
    color: var(--brand);
}

.login-title {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
}

.login-form {
    width: 100%;
    box-sizing: border-box;
}

.form-group {
    margin-bottom: 1.5rem;
    width: 100%;
    box-sizing: border-box;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 500;
    line-height: 1.5;
}

.form-group input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-subtle);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
    background: var(--surface-muted);
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-glow-sm);
    background: var(--surface-card);
}

.form-group input::placeholder {
    color: var(--text-subtle);
}

.input-icon {
    position: relative;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.input-icon i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1rem;
}

.input-icon input {
    padding-left: 3rem;
    box-sizing: border-box;
}

.login-button {
    width: 100%;
    padding: 0.875rem;
    background: var(--brand-strong);
    color: var(--surface-card);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-sizing: border-box;
}

.login-button:hover {
    background: var(--success);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--success-glow);
}

.login-button:active {
    transform: translateY(0);
}

.register-button {
    width: 100%;
    padding: 0.875rem;
    background: transparent;
    color: var(--brand);
    border: 2px solid var(--brand);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    box-sizing: border-box;
}

.register-button:hover {
    background: var(--brand);
    color: var(--surface-card);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--brand-glow-lg);
}

.register-button:active {
    transform: translateY(0);
}

.forgot-links {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.forgot-link {
    color: var(--brand);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

.forgot-link:hover {
    color: var(--brand-hover);
    text-decoration: underline;
}

.register-link {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.register-link a {
    color: var(--brand);
    text-decoration: none;
    font-weight: 500;
}

.register-link a:hover {
    text-decoration: underline;
}

.back-to-home-inline {
    top: 1rem;
    left: 1rem;
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
}
 .back-to-home-inline {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    color: var(--brand);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    background: var(--brand-softer);
    padding: 0.5rem 1rem;
    border-radius: 999px;
    transition: background 0.3s;
    z-index: 10;
    margin-left: 10px;
    margin-top: 10px;
}

.back-to-home-inline:hover {
    background: var(--brand-soft);
}

/* Responsive */
@media (max-width: 1024px) {
    .login-card {
        grid-template-columns: 1fr;
        max-width: 600px;
        padding: 3rem;
    }

    .login-illustration {
        display: none;
    }
}

@media (max-width: 768px) {
    .login-container {
        padding: 1rem;
    }
    
    .login-card {
        padding: 2.5rem 2rem;
    }
    
    .login-title {
        font-size: 1.5rem;
    }
    
    .forgot-links {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .back-to-home {
        position: static;
        margin-bottom: 1rem;
        justify-content: center;
    }
}

/* Animaciones */
.login-card {
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group input:focus + i {
    color: var(--brand);
}