/* Core — Página de login (core/login.html, legacy base.html).
   Extraído del <style> embebido de login.html con la paleta retirada
   remapeada a tokens. El botón .btn-login se retiró: usa .tk-btn-primary
   con el modificador .login-submit. */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-dark-0);
}

.login-box {
    display: flex;
    width: 90%;
    max-width: 1200px;
    height: 600px;
    background: linear-gradient(135deg, var(--surface-dark-2) 0%, var(--surface-dark-0) 100%);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.login-image {
    flex: 1;
    background: linear-gradient(135deg, var(--brand-forest) 0%, var(--brand-emerald) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-image::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(128, 218, 71, 0.2) 0%, transparent 50%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.login-image-content {
    text-align: center;
    color: var(--ink-invert-1);
    z-index: 1;
    padding: 40px;
}

.login-image-content i {
    font-size: 100px;
    margin-bottom: 30px;
    color: var(--brand-lime);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.login-image-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.login-image-content p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.login-form-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.login-form {
    width: 100%;
    max-width: 400px;
}

.logo-container {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--brand-lime) 0%, var(--brand-emerald) 100%);
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: bold;
    color: var(--surface-dark-0);
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(128, 218, 71, 0.3);
}

.login-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--ink-invert-1);
    margin-bottom: 10px;
}

.login-subtitle {
    color: var(--brand-mint);
    margin-bottom: 30px;
}

.form-floating {
    margin-bottom: 20px;
}

.form-floating label {
    color: rgba(255, 255, 255, 0.5);
}

.form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(128, 218, 71, 0.2);
    color: var(--ink-invert-1);
    height: 55px;
    font-size: 16px;
}

.form-control:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--brand-lime);
    box-shadow: 0 0 0 0.2rem rgba(128, 218, 71, 0.25);
}

.login-submit {
    width: 100%;
    padding: 15px;
    margin-top: 20px;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-form .alert {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: var(--danger);
    border-radius: 10px;
    margin-bottom: 20px;
}

.form-check {
    margin-top: 20px;
}

.form-check-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(128, 218, 71, 0.3);
}

.form-check-input:checked {
    background-color: var(--brand-lime);
    border-color: var(--brand-lime);
}

.form-check-label {
    color: var(--brand-mint);
}

@media (max-width: 992px) {
    .login-image {
        display: none;
    }

    .login-form-container {
        padding: 40px;
    }
}
