/**
 * SIRYC - Estilos de Login
 * Diseño profesional sin degradados
 */

.login-page {
    min-height: 100vh;
    display: flex;
    background: #f4f6f9;
}

.login-sidebar {
    width: 45%;
    min-height: 100vh;
    background: var(--siryc-primary);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.login-sidebar::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
}

.login-sidebar::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -30%;
    width: 80%;
    height: 80%;
    background: rgba(0,0,0,0.1);
    border-radius: 50%;
}

.login-brand {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-bottom: 2rem;
}

.login-brand img {
    max-width: 200px;
    height: auto;
    margin-bottom: 1.5rem;
}

.login-brand h1 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
}

.login-brand p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin: 0;
}

.login-features {
    position: relative;
    z-index: 1;
    max-width: 320px;
}

.login-feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    color: rgba(255,255,255,0.9);
}

.login-feature-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.login-feature-icon i {
    color: var(--macrogram-orange);
    font-size: 1.1rem;
}

.login-feature h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
}

.login-feature p {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.6);
    margin: 0;
    line-height: 1.4;
}

.login-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
}

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

.login-header {
    margin-bottom: 2rem;
}

.login-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 0.5rem;
}

.login-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.login-form .form-group {
    margin-bottom: 1.25rem;
}

.login-form .form-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    display: block;
}

.login-form .form-control {
    height: 48px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    border: 1px solid #dde2e6;
    border-radius: 8px;
    transition: all 0.2s;
}

.login-form .form-control:focus {
    border-color: var(--siryc-primary);
    box-shadow: 0 0 0 3px rgba(26,58,92,0.1);
}

.login-form .input-group {
    position: relative;
}

.login-form .input-group .form-control {
    padding-left: 3rem;
}

.login-form .input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    z-index: 4;
}

.login-form .password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    z-index: 4;
}

.login-form .password-toggle:hover {
    color: var(--siryc-primary);
}

.login-form .form-check {
    margin-bottom: 1.5rem;
}

.login-form .form-check-input {
    width: 18px;
    height: 18px;
    margin-top: 0;
    border: 1px solid #dde2e6;
}

.login-form .form-check-input:checked {
    background-color: var(--siryc-primary);
    border-color: var(--siryc-primary);
}

.login-form .form-check-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-left: 0.5rem;
}

.login-form .btn-login {
    width: 100%;
    height: 48px;
    font-size: 0.95rem;
    font-weight: 600;
    background: var(--siryc-primary);
    border: none;
    border-radius: 8px;
    color: #fff;
    transition: all 0.2s;
}

.login-form .btn-login:hover {
    background: var(--siryc-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26,58,92,0.3);
}

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

.login-form .btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

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

.login-footer a {
    color: var(--siryc-primary);
    text-decoration: none;
    font-size: 0.85rem;
}

.login-footer a:hover {
    color: var(--macrogram-orange);
    text-decoration: underline;
}

.login-error {
    background: rgba(220,53,69,0.1);
    border-left: 3px solid #dc3545;
    padding: 0.75rem 1rem;
    border-radius: 0 6px 6px 0;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    color: #721c24;
}

.login-copyright {
    position: absolute;
    bottom: 1.5rem;
    left: 0;
    right: 0;
    text-align: center;
}

.login-copyright p {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    margin: 0;
}

/* Developer badge */
.developer-badge {
    position: relative;
    z-index: 1;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.developer-badge img {
    max-width: 140px;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 991.98px) {
    .login-page {
        flex-direction: column;
    }

    .login-sidebar {
        width: 100%;
        min-height: auto;
        padding: 2rem;
    }

    .login-features {
        display: none;
    }

    .developer-badge {
        display: none;
    }

    .login-content {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .login-brand img {
        max-width: 150px;
    }

    .login-brand h1 {
        font-size: 1.25rem;
    }

    .login-header h2 {
        font-size: 1.25rem;
    }
}

/* Loading state */
.btn-login.loading {
    position: relative;
    color: transparent;
}

.btn-login.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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