/* Login Page Styles - Similar a jxm_delixir */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.login-page-body {
    position: relative;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.login-page-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/sistema-watermark.svg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 50%;
    opacity: 0.03;
    z-index: -1;
}

.login-page-body .system-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
    padding: 20px;
    margin-top: 60px; /* Espacio para el header */
}

@media (max-width: 768px) {
    .login-container {
        align-items: flex-start;
        padding-top: 12px;
    }
}

.login-box {
    background-color: #ffffff;
    padding: 16px 12px 12px 12px;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
    width: 100%;
    max-width: 320px;
    text-align: center;
    border: 1px solid #e0e0e0;
    min-height: unset;
}

.login-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
}

.login-title {
    margin-bottom: 20px;
    color: #1a1a1a;
    font-weight: 700;
    font-size: 20px;
}

.login-form {
    text-align: left;
}

.login-input-group {
    margin-bottom: 16px;
    position: relative; /* Added for positioning the toggle icon */
}

.login-input-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.login-input-group select,
.login-input-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    background-color: #fafafa;
    transition: all 0.3s ease;
}

.password-input-container {
    display: flex;
    gap: 8px;
    align-items: center;
    position: relative;
}

.password-input-container input {
    flex: 1;
    padding-right: 70px; /* More space for eye icon */
}

.password-toggle {
    position: absolute;
    right: 60px; /* Adjust for smaller button width */
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    font-size: 18px;
    z-index: 10;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.password-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--color-primary);
}

.password-toggle .fa-eye-slash {
    color: var(--color-primary);
}

.change-password-btn {
    width: 50px;
    height: 50px; /* Same height as input */
    padding: 0;
    background-color: #ffffff;
    color: var(--color-primary);
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.change-password-btn:hover:not(:disabled) {
    background-color: #f8f9fa;
    border-color: var(--color-primary);
    transform: translateY(-1px);
}

.change-password-btn:hover:not(:disabled) {
    background-color: #e0e0e0;
}

.change-password-btn:disabled {
    background-color: #f5f5f5;
    color: #999;
    cursor: not-allowed;
    border-color: #eee;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 6px;
    font-family: 'Inter', sans-serif;
}

.login-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    background: linear-gradient(135deg, #45a049, #3d8b40);
}

.login-btn:active:not(:disabled) {
    transform: translateY(0);
}

.login-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.login-links {
    text-align: center;
    margin-top: 15px;
}

.forgot-password-link,
.change-password-link {
    margin-top: 8px;
}

.forgot-password-link a,
.change-password-link a {
    font-size: 12px;
    color: var(--color-primary);
    text-decoration: none;
}

.forgot-password-link a:hover,
.change-password-link a:hover {
    text-decoration: underline;
}

.hidden {
    display: none;
}

/* Footer del login */
.login-footer {
    margin-top: 24px;
    text-align: center;
    font-size: 11px;
    color: #000000;
}

/* Modal styles */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: #ffffff;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 20px 20px 10px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h4 {
    margin: 0;
    color: white;
    font-weight: 600;
}

.close {
    color: rgba(255, 255, 255, 0.8);
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: white;
}

.modal-user-info {
    padding: 15px 20px 10px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
}

.modal-user-info h5 {
    margin: 0;
    color: #333;
    font-weight: 500;
    font-size: 16px;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 10px 20px 20px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-secondary {
    padding: 10px 20px;
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}